torch.rad2deg¶ torch.rad2deg(input: Tensor, *, out: Optional[Tensor]) → Tensor¶ 返回一個新張量,其中 input 的每個元素都從弧度角轉換為度數角。 引數 input (Tensor) – 輸入張量。 關鍵字引數 out (Tensor, 可選) – 輸出張量。 示例 >>> a = torch.tensor([[3.142, -3.142], [6.283, -6.283], [1.570, -1.570]]) >>> torch.rad2deg(a) tensor([[ 180.0233, -180.0233], [ 359.9894, -359.9894], [ 89.9544, -89.9544]])