This function divides x and y, forcing Python 2 semantics. That is, if x
and y are both integers then the result will be an integer. This is in
contrast to Python 3, where division with / is always a float while division
with // is always an integer.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.div\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/math_ops.py#L1069-L1092) |\n\nDivides x / y elementwise (using Python 2 division operator semantics). (deprecated)\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.div`](/api_docs/python/tf/RaggedTensor#__div__)\n\n\u003cbr /\u003e\n\n tf.div(\n x, y, name=None\n )\n\n| **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Deprecated in favor of operator or tf.math.divide.\n| **Note:** Prefer using the Tensor division operator or tf.divide which obey Python 3 division operator semantics.\n\nThis function divides `x` and `y`, forcing Python 2 semantics. That is, if `x`\nand `y` are both integers then the result will be an integer. This is in\ncontrast to Python 3, where division with `/` is always a float while division\nwith `//` is always an integer.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|--------------------------------------------|\n| `x` | `Tensor` numerator of real numeric type. |\n| `y` | `Tensor` denominator of real numeric type. |\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| `x / y` returns the quotient of x and y. ||\n\n\u003cbr /\u003e"]]