We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 744a979 commit 8026740Copy full SHA for 8026740
python/singa/tensor.py
@@ -468,20 +468,8 @@ def __imul__(self, x):
468
self.data *= float(x)
469
return self
470
471
- def __idiv__(self, x):
472
- ''' inplace element-wise division by a tensor or a float value.
473
-
474
- Args:
475
- x (float or Tensor):
476
- '''
477
- if isinstance(x, Tensor):
478
- self.data *= (1.0/x.data)
479
- else:
480
- self.data *= (1.0/float(x))
481
- return self
482
483
def __itruediv__(self, x):
484
- ''' For python3: inplace element-wise division by a tensor or a float value.
+ ''' inplace element-wise division by a tensor or a float value.
485
486
Args:
487
x (float or Tensor):
0 commit comments