def div_(self, value): """Inplace of ``Tensor.div()`` Parameters ---------- value : vm.torch.Tensor, int or float The value tensor. Returns ------- vm.torch.Tensor The self. """ return _fundamental(self, value, out=self, op='Div')
def div(self, value): """Divide the ``self`` and ``value`` into the output tensor. Parameters ---------- value : vm.torch.Tensor, int or float The value tensor. Returns ------- vm.torch.Tensor The output tensor. """ return _fundamental(self, value, op='Div')
def mul(self, value): """Multiply the ``self`` and ``value`` into the output tensor. Parameters ---------- value : vm.torch.Tensor, int or float The value tensor. Returns ------- vm.torch.Tensor The output tensor. """ return _fundamental(self, value, op='Mul')
def sub(self, value): """Subtract the ``self`` and ``value`` into the output tensor. Parameters ---------- value : vm.torch.Tensor, int or float The value tensor. Returns ------- vm.torch.Tensor The output tensor. """ return _fundamental(self, value, op='Sub')
def add_(self, value): """Inplace of ``torch.add()`` Parameters ---------- value : vm.torch.Tensor, int or float The value tensor. Returns ------- vm.torch.Tensor The self. """ return _fundamental(self, value, out=self, op='Add')
def add(self, value): """See ``torch.add()`` Parameters ---------- value : vm.torch.Tensor, int or float The value tensor. Returns ------- vm.torch.Tensor The output tensor. """ return _fundamental(self, value, op='Add')