[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.math.not_equal\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 1 version](/versions/r1.15/api_docs/python/tf/math/not_equal) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/python/ops/math_ops.py#L1309-L1325) |\n\nReturns the truth value of (x != y) element-wise.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tf.not_equal`](/api_docs/python/tf/math/not_equal)\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.math.not_equal`](/api_docs/python/tf/math/not_equal), [`tf.compat.v1.not_equal`](/api_docs/python/tf/math/not_equal)\n\n\u003cbr /\u003e\n\n tf.math.not_equal(\n x, y, name=None\n )\n\n| **Note:** `NotEqual` supports broadcasting. More about broadcasting [here](https://docs.scipy.org/doc/numpy-1.13.0/user/basics.broadcasting.html)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|--------------------------------------------------|\n| `x` | A `Tensor` or `SparseTensor` or `IndexedSlices`. |\n| `y` | A `Tensor` or `SparseTensor` or `IndexedSlices`. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type bool with the same size as that of x or y. ||\n\n\u003cbr /\u003e"]]