Commit a87d5557 authored by Joshua V. Dillon's avatar Joshua V. Dillon Committed by TensorFlower Gardener
Browse files

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
parent a82a6a13
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment