Use integer division to compute number of updates.

Change: 144675800
This commit is contained in:
Patrick Nguyen 2017-01-16 23:24:28 -08:00 committed by TensorFlower Gardener
parent 97c893338c
commit 0b56eab8de

View File

@ -52,7 +52,7 @@ def _FlatOuterDims(tensor, ndims=2):
def _NumpyScatterNd(ref, indices, updates, op):
ixdim = indices.shape[-1]
num_updates = indices.size / ixdim
num_updates = indices.size // ixdim
total_nd = len(ref.shape)
slice_size = 1
for i in range(ixdim, total_nd):