Reshape the output explicitly in `sparse_message_pass`. This propagates static shape information that is lost during the `tf.sparse_reduce_sum` operation.
Reshape the output explicitly in `sparse_message_pass`. This propagates static
shape information that is lost during the `tf.sparse_reduce_sum` operation.

This would prevent failing downstream tests from failing after broadcasting
support is added in tf.matmul. After this addition, unknown (static) rank on either
operand of tf.matmul would result in unknown rank of the output Tensor.

PiperOrigin-RevId: 239826458

tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor