R/gen-namespace-docs.R
, R/gen-namespace-examples.R
, R/gen-namespace.R
torch_square.Rd
Square
torch_square(self)
self | (Tensor) the input tensor. |
---|
Returns a new tensor with the square of the elements of input
.
#> torch_tensor #> 0.1858 #> 0.0154 #> 0.1483 #> 0.8034 #> [ CPUFloatType{4} ]