(x: Any)
return isinstance(x, (tf.Tensor, tf.Variable, tf.Operation))
Check whether the input is a valid Tensorflow expression, i.e., Tensorflow Tensor, Variable, or Operation.
Check whether the input is a valid Tensorflow expression, i.e., Tensorflow Tensor, Variable, or Operation.
Check whether the input is a valid Tensorflow expression i . e . Tensorflow Tensor Variable or Operation .
def is_tf_expression(x: Any) -> bool:
    """Check whether the input is a valid Tensorflow expression, i.e., Tensorflow Tensor, Variable, or Operation."""
    return isinstance(x, (tf.Tensor, tf.Variable, tf.Operation))
def is_tf_expression ( x : Any ) -> bool : return isinstance ( x , ( tf . Tensor , tf . Variable , tf . Operation ) )