Fixes shape setting in tf2xla.gather

PiperOrigin-RevId: 306877898
Change-Id: Icdaf04ef63d5cb3a3757d5b7514b76f4e4add44b
This commit is contained in:
A. Unique TensorFlower 2020-04-16 10:47:49 -07:00 committed by TensorFlower Gardener
parent ffb230a4b7
commit fcb0534cc5

View File

@ -674,7 +674,7 @@ REGISTER_OP("XlaGather")
.Attr("T: numbertype")
.Attr("Tindices: {int32, int64}")
.Output("output: T")
.SetShapeFn(UnchangedRank)
.SetShapeFn(shape_inference::UnknownShape)
.Doc(R"doc(
Wraps the XLA Gather operator documented at
https://www.tensorflow.org/xla/operation_semantics#gather