torch_deg2rad: Deg2rad

View source: R/gen-namespace.R

torch_deg2radR Documentation

Deg2rad

Description

Deg2rad

Usage

torch_deg2rad(self)

Arguments

self

(Tensor) the input tensor.

deg2rad(input, *, out=None) -> Tensor

Returns a new tensor with each of the elements of input converted from angles in degrees to radians.

Examples

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)
}

torch documentation built on May 29, 2024, 9:54 a.m.