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