tf.compat.v1.convert_to_tensor_or_sparse_tensor