# tf.compat.v1.disable_tensor_equality

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/framework/ops.py#L278-L284) |

Compare Tensors by their id and be hashable.

    tf.compat.v1.disable_tensor_equality()

This is a legacy behaviour of TensorFlow and is highly discouraged.