sqrt¶
dragon.vm.torch.
sqrt
(
input,
out=None
)[source]¶Compute the square root of input.
\[\text{out} = \sqrt{\text{input}} \]Examples:
x = torch.tensor([4., 9., 16.]) print(torch.sqrt(x)) # [2., 3., 4.]
- 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.