# tensorplay.functional.deg2rad Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.deg2rad.html ```python tensorplay.functional.deg2rad(input, *, out=None) → Tensor ``` Returns a new tensor with each of the elements of input converted from angles in degrees to radians. Parameters: input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – the input tensor. Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> a = tensorplay.tensor([[180.0, -180.0], [360.0, -360.0], [90.0, -90.0]]) >>> tensorplay.deg2rad(a) tensor([[ 3.1416, -3.1416], [ 6.2832, -6.2832], [ 1.5708, -1.5708]]) ```