Merge pull request #40057 from yongtang:40052-doc-tf.ragged.constant
PiperOrigin-RevId: 314378639 Change-Id: I8d260a03049187fedba1721985879f490f79200f
This commit is contained in:
commit
2bea44144e
@ -59,8 +59,8 @@ def constant(pylist, dtype=None, ragged_rank=None, inner_shape=None,
|
|||||||
`pylist`.
|
`pylist`.
|
||||||
ragged_rank: An integer specifying the ragged rank of the returned
|
ragged_rank: An integer specifying the ragged rank of the returned
|
||||||
`RaggedTensor`. Must be nonnegative and less than `K`. Defaults to
|
`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
|
`max(0, K - 1)` if `inner_shape` is not specified. Defaults to
|
||||||
- 1 - len(inner_shape))` if `inner_shape` is specified.
|
`max(0, K - 1 - len(inner_shape))` if `inner_shape` is specified.
|
||||||
inner_shape: A tuple of integers specifying the shape for individual inner
|
inner_shape: A tuple of integers specifying the shape for individual inner
|
||||||
values in the returned `RaggedTensor`. Defaults to `()` if `ragged_rank`
|
values in the returned `RaggedTensor`. Defaults to `()` if `ragged_rank`
|
||||||
is not specified. If `ragged_rank` is specified, then a default is chosen
|
is not specified. If `ragged_rank` is specified, then a default is chosen
|
||||||
|
Loading…
Reference in New Issue
Block a user