Fixed error from printing out of IndexedSlices objects.
PiperOrigin-RevId: 316522660 Change-Id: Ib7cc467ec2e9f2d465aa51db441574b9aca4f36e
This commit is contained in:
parent
09cf51da59
commit
08cbfe4090
@ -147,7 +147,7 @@ class IndexedSlices(internal.NativeObject, composite_tensor.CompositeTensor):
|
|||||||
return "IndexedSlices(indices=%s, values=%s%s)" % (
|
return "IndexedSlices(indices=%s, values=%s%s)" % (
|
||||||
self._indices, self._values,
|
self._indices, self._values,
|
||||||
(", dense_shape=%s" %
|
(", dense_shape=%s" %
|
||||||
self._dense_shape) if self._dense_shape is not None else "")
|
(self._dense_shape,)) if self._dense_shape is not None else "")
|
||||||
|
|
||||||
def __neg__(self):
|
def __neg__(self):
|
||||||
return IndexedSlices(-self.values, self.indices, self.dense_shape)
|
return IndexedSlices(-self.values, self.indices, self.dense_shape)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user