Skip to content

Commit 6d1f90e

Browse files
authored
Merge pull request #500 from chrishkchris/SINGA-478
SINGA-478 (Python 3 uses __itruediv__ instead of __idiv__)
2 parents cc980b8 + 8026740 commit 6d1f90e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/singa/tensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def __imul__(self, x):
468468
self.data *= float(x)
469469
return self
470470

471-
def __idiv__(self, x):
471+
def __itruediv__(self, x):
472472
''' inplace element-wise division by a tensor or a float value.
473473
474474
Args:

0 commit comments

Comments
 (0)