[TF] Fix XLA Control Flow gradient stacks max_size creation.
Stack creation uses tf.while_loop's maximum_iterations iff the while_loop was created inside an XLA/TPU context. Added several error checks to ensure this provides useful error messages if the limited use case is not supported. PiperOrigin-RevId: 182128135
Loading
Please sign in to comment