aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.floordiv.md
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.floordiv.md')
-rw-r--r--tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.floordiv.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.floordiv.md b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.floordiv.md
new file mode 100644
index 0000000000..8f824e867e
--- /dev/null
+++ b/tensorflow/g3doc/api_docs/python/functions_and_classes/shard7/tf.floordiv.md
@@ -0,0 +1,32 @@
+### `tf.floordiv(x, y, name=None)` {#floordiv}
+
+Divides `x / y` elementwise, rounding down for floating point.
+
+The same as `tf.div(x,y)` for integers, but uses `tf.floor(tf.div(x,y))` for
+floating point arguments so that the result is always an integer (though
+possibly an integer represented as floating point). This op is generated by
+`x // y` floor division in Python 3 and in Python 2.7 with
+`from __future__ import division`.
+
+Note that for efficiency, `floordiv` uses C semantics for negative numbers
+(unlike Python and Numpy).
+
+`x` and `y` must have the same type, and the result will have the same type
+as well.
+
+##### Args:
+
+
+* <b>`x`</b>: `Tensor` numerator of real numeric type.
+* <b>`y`</b>: `Tensor` denominator of real numeric type.
+* <b>`name`</b>: A name for the operation (optional).
+
+##### Returns:
+
+ `x / y` rounded down (except possibly towards zero for negative integers).
+
+##### Raises:
+
+
+* <b>`TypeError`</b>: If the inputs are complex.
+