Fix while_v2 for XLA.
Set max_num_elements on EmptyTensorList and add checks to make sure maximum_iterations is statically known in XLA context. In order to make maximum_iterations available for the gradient pass it is set as an attr on the forward While op. PiperOrigin-RevId: 220749927
Loading
Please sign in to comment