Lazily initialize TensorLists passed as input to While if needed. This is...
Lazily initialize TensorLists passed as input to While if needed. This is similar to the existing setup for TensorArrays. If an uninitialized list is passed to the XlaWhile, it first compiles the body with the uninitialized list input to get the output list shape. Then it creates an initialized TL using the inferred shape and re-compiles the body. This enables tf.map_fn in XLA with v2 control flow. PiperOrigin-RevId: 236871595
Loading
Please sign in to comment