Fix formatting
Some of these indents are triggering markdown's (horrible) "4-space indent is a code block" feature PiperOrigin-RevId: 316883013 Change-Id: If2b53a6788d3179b868a62fb6b4caeeb08caa4bf
This commit is contained in:
parent
401dad16ea
commit
f44b07ed4e
@ -119,7 +119,6 @@ def map_fn(fn,
|
||||
|
||||
* If `elems` is a `RaggedTensor`, then `fn` will be called with each
|
||||
row of that ragged tensor.
|
||||
|
||||
* If `elems` has only one ragged dimension, then the values passed to
|
||||
`fn` will be `tf.Tensor`s.
|
||||
* If `elems` has multiple ragged dimensions, then the values passed to
|
||||
@ -127,7 +126,6 @@ def map_fn(fn,
|
||||
|
||||
* If the result of `map_fn` should be a `RaggedTensor`, then use a
|
||||
`tf.RaggedTensorSpec` to specify `fn_output_signature`.
|
||||
|
||||
* If `fn` returns `tf.Tensor`s with varying sizes, then use a
|
||||
`tf.RaggedTensorSpec` with `ragged_rank=0` to combine them into a
|
||||
single ragged tensor (which will have ragged_rank=1).
|
||||
@ -255,7 +253,7 @@ def map_fn(fn,
|
||||
[2, 3, 4]], dtype=int32)>
|
||||
|
||||
|
||||
Note that if you use the `tf.function` decorator, any non-TensorFlow Python
|
||||
Note: if you use the `tf.function` decorator, any non-TensorFlow Python
|
||||
code that you may have written in your function won't get executed. See
|
||||
`tf.function` for more details. The recommendation would be to debug without
|
||||
`tf.function` but switch to it to get performance benefits of running `map_fn`
|
||||
|
Loading…
Reference in New Issue
Block a user