Support XlaGather and XlaScatter ops for bool.
The undelying XLA ops do work for bool. PiperOrigin-RevId: 337106941 Change-Id: Ifd920287f1113b9d6140489e8518613547289977
This commit is contained in:
parent
668c686e6d
commit
377ef73611
@ -792,7 +792,7 @@ REGISTER_OP("XlaGather")
|
||||
.Input("slice_sizes: Tindices")
|
||||
.Attr("dimension_numbers: string")
|
||||
.Attr("indices_are_sorted: bool")
|
||||
.Attr("T: numbertype")
|
||||
.Attr("T: {numbertype, bool}")
|
||||
.Attr("Tindices: {int32, int64}")
|
||||
.Output("output: T")
|
||||
.SetShapeFn(shape_inference::UnknownShape)
|
||||
@ -813,7 +813,7 @@ REGISTER_OP("XlaScatter")
|
||||
.Attr("update_computation: func")
|
||||
.Attr("dimension_numbers: string")
|
||||
.Attr("indices_are_sorted: bool")
|
||||
.Attr("T: numbertype")
|
||||
.Attr("T: {numbertype, bool}")
|
||||
.Attr("Tindices: {int32, int64}")
|
||||
.Output("output: T")
|
||||
.SetShapeFn(shape_inference::UnchangedShape)
|
||||
|
Loading…
Reference in New Issue
Block a user