tf.tensor_scatter_nd_max

tensor A Tensor. Tensor to update.
indices A Tensor. Must be one of the following types: int32, int64. Index tensor.
updates A Tensor. Must have the same type as tensor. Updates to scatter into output.
name A name for the operation (optional).

A Tensor. Has the same type as tensor.