View source on GitHub |
Returns input values, converting any TensorFlow values to NumPy values.
orbit.utils.get_value(
x
)
Args | |
---|---|
x
|
The input. May be a tf.Tensor or tf.Variable .
|
Returns | |
---|---|
If the input is a TensorFlow Tensor , returns the Tensor 's equivalent
NumPy value. Otherwise, just returns the input.
|