I’m not familiar with the TF code, but would these two operations refer to a scatter_max op?
If so, you could take a look at this post 4.
Or is the reduction axis in the max operation different from the split axis and you would still get “ragged tensors” with scalar values in one dimension?