sin¶
dragon.vm.torch.
sin
(
input,
out=None
)[source]¶Compute the sin of input.
\[\text{out} = \sin(\text{input}) \]Examples:
x = torch.tensor([0., math.pi / 2]) print(torch.sin(x)) # [0., 1.]
- 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.