aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc/api_docs/python/math_ops.md
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-10-13 13:38:16 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-10-13 14:48:18 -0700
commit4737a098c5bcc1d025083bad4483626fa37a31df (patch)
tree5375c562972a3200aaea6f336dcd7c51ee29689a /tensorflow/g3doc/api_docs/python/math_ops.md
parent09d8a0c16a1e5212e345dcb0358cf0bab2440bda (diff)
Update generated Python Op docs.
Change: 136087897
Diffstat (limited to 'tensorflow/g3doc/api_docs/python/math_ops.md')
-rw-r--r--tensorflow/g3doc/api_docs/python/math_ops.md39
1 files changed, 39 insertions, 0 deletions
diff --git a/tensorflow/g3doc/api_docs/python/math_ops.md b/tensorflow/g3doc/api_docs/python/math_ops.md
index ad1126474d..69d8bac2b6 100644
--- a/tensorflow/g3doc/api_docs/python/math_ops.md
+++ b/tensorflow/g3doc/api_docs/python/math_ops.md
@@ -1133,6 +1133,45 @@ tf.transpose(x, perm=[0, 2, 1]) ==> [[[1 4]
- - -
+### `tf.eye(num_rows, num_columns=None, batch_shape=None, dtype=tf.float32, name=None)` {#eye}
+
+Construct an identity matrix, or a batch of matrices.
+
+```python
+# Construct one identity matrix.
+tf.eye(2)
+==> [[1., 0.],
+ [0., 1.]]
+
+# Construct a batch of 3 identity matricies, each 2 x 2.
+# batch_identity[i, :, :] is a 2 x 2 identity matrix, i = 0, 1, 2.
+batch_identity = tf.eye(2, batch_shape=[3])
+
+# Construct one 2 x 3 "identity" matrix
+tf.eye(2, num_columns=3)
+==> [[ 1., 0., 0.],
+ [ 0., 1., 0.]]
+```
+
+##### Args:
+
+
+* <b>`num_rows`</b>: Non-negative `int32` scalar `Tensor` giving the number of rows
+ in each batch matrix.
+* <b>`num_columns`</b>: Optional non-negative `int32` scalar `Tensor` giving the number
+ of columns in each batch matrix. Defaults to `num_rows`.
+* <b>`batch_shape`</b>: `int32` `Tensor`. If provided, returned `Tensor` will have
+ leading batch dimensions of this shape.
+* <b>`dtype`</b>: The type of an element in the resulting `Tensor`
+* <b>`name`</b>: A name for this `Op`. Defaults to "eye".
+
+##### Returns:
+
+ A `Tensor` of shape `batch_shape + [num_rows, num_columns]`
+
+
+- - -
+
### `tf.matrix_diag(diagonal, name=None)` {#matrix_diag}
Returns a batched diagonal tensor with a given batched diagonal values.