TFSimilarity.utils.is_tensor_or_variable check if a variable is tf.Tensor or tf.Variable TFSimilarity.utils.is_tensor_or_variable( x )