Make `tf.get_static_value` pass-through non-`Tensor` inputs.
This change allows consistent usage of `tf.get_static_value` without forcing the user to have the following indirection: `tf.get_static_value(tf.convert_to_tensor(x))` which itself often defeats the point of using `tf.get_static_value` because of requiring graph side-effects only to not have graph side-effects. PiperOrigin-RevId: 234666789
Loading
Please sign in to comment