View source: R/gen-namespace.R
torch_rad2deg | R Documentation |
Rad2deg
torch_rad2deg(self)
self |
(Tensor) the input tensor. |
Returns a new tensor with each of the elements of input
converted from angles in radians to degrees.
if (torch_is_installed()) {
a <- torch_tensor(rbind(c(3.142, -3.142), c(6.283, -6.283), c(1.570, -1.570)))
torch_rad2deg(a)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.