Skip to content

Commit c0e7947

Browse files
committed
update docs
1 parent 8b42d12 commit c0e7947

39 files changed

+975
-449
lines changed

tensorflow/g3doc/api_docs/python/array_ops.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,20 +269,20 @@ This operation returns an integer representing the rank of `input`.
269269

270270
For example:
271271

272-
```prettyprint
272+
```python
273273
# 't' is [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]
274274
# shape of tensor 't' is [2, 2, 3]
275275
rank(t) ==> 3
276276
```
277277

278-
**Note**: The rank of a tensor is not the same as the rank of a matrix. The rank
279-
of a tensor is the number of indices required to uniquely select each element
280-
of the tensor. Rank is also known as "order", "degree", or "ndims."
278+
**Note**: The rank of a tensor is not the same as the rank of a matrix. The
279+
rank of a tensor is the number of indices required to uniquely select each
280+
element of the tensor. Rank is also known as "order", "degree", or "ndims."
281281

282282
##### Args:
283283

284284

285-
* <b>`input`</b>: A `Tensor`.
285+
* <b>`input`</b>: A `Tensor` or `SparseTensor`.
286286
* <b>`name`</b>: A name for the operation (optional).
287287

288288
##### Returns:

tensorflow/g3doc/api_docs/python/constant_op.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ tf.ones_like(tensor) ==> [[1, 1, 1], [1, 1, 1]]
119119

120120
* <b>`tensor`</b>: A `Tensor`.
121121
* <b>`dtype`</b>: A type for the returned `Tensor`. Must be `float32`, `float64`,
122-
`int8`, `int16`, `int32`, `int64`, `uint8`, `complex64` or `complex128`.
122+
`int8`, `int16`, `int32`, `int64`, `uint8`, `complex64`, or `complex128`.
123123

124124
* <b>`name`</b>: A name for the operation (optional).
125125

0 commit comments

Comments
 (0)