Divides x / y elementwise (using Python 2 division operator semantics). (deprecated)
tf.compat.v1.div(
    x, y, name=None
)
 Migrate to TF2
This function is deprecated in TF2. Prefer using the Tensor division operator, tf.divide, or tf.math.divide, which obey the Python 3 division operator semantics.
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.
| Args | |
|---|---|
| x | Tensornumerator of real numeric type. | 
| y | Tensordenominator of real numeric type. | 
| name | A name for the operation (optional). | 
| Returns | |
|---|---|
| x / yreturns the quotient of x and y. | 
    © 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
    https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/compat/v1/div