Merge pull request #40057 from yongtang:40052-doc-tf.ragged.constant

PiperOrigin-RevId: 314378639
Change-Id: I8d260a03049187fedba1721985879f490f79200f
This commit is contained in:
TensorFlower Gardener 2020-06-02 12:18:00 -07:00
commit 2bea44144e

View File

@ -59,8 +59,8 @@ def constant(pylist, dtype=None, ragged_rank=None, inner_shape=None,
`pylist`.
ragged_rank: An integer specifying the ragged rank of the returned
`RaggedTensor`. Must be nonnegative and less than `K`. Defaults to
`max(0, K - 1)` if `inner_shape` is not specified. Defaults to `max(0, K
- 1 - len(inner_shape))` if `inner_shape` is specified.
`max(0, K - 1)` if `inner_shape` is not specified. Defaults to
`max(0, K - 1 - len(inner_shape))` if `inner_shape` is specified.
inner_shape: A tuple of integers specifying the shape for individual inner
values in the returned `RaggedTensor`. Defaults to `()` if `ragged_rank`
is not specified. If `ragged_rank` is specified, then a default is chosen