tf.keras.ops.rad2deg
Stay organized with collections
Save and categorize content based on your preferences.
Convert angles from radians to degrees.
tf.keras.ops.rad2deg(
x
)
The conversion is defined as:
deg = rad * (180 / π)
Args |
x
|
Input tensor of angles in radians.
|
Returns |
|
A tensor containing angles converted to degrees.
|
Examples:
from keras import ops
ops.rad2deg(3.141592653589793)
180.0
ops.rad2deg([0.0, 1.57079633, 3.14159265])
array([0., 90., 180.])
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2026-10-31 UTC.
[null,null,["Last updated 2026-10-31 UTC."],[],[]]