reciprocal¶
- dragon.vm.torch.- reciprocal(
 input,
 out=None
 )[source]¶
- Compute the reciprocal of input. \[\text{out} = \frac{1}{\text{input}} \]- Examples: - x = torch.tensor([0., 1., 2.]) print(torch.reciprocal(x)) # [inf, 1., 0.5] - Parameters:
- input (dragon.vm.torch.Tensor) – The input tensor.
- out (dragon.vm.torch.Tensor, optional) – The output tensor.
 
 - Returns:
- dragon.vm.torch.Tensor – The output tensor. 
 
