We're executing TPU Strategy.
(strategy)
| 5827 | |
| 5828 | |
| 5829 | def is_tpu_strategy(strategy): |
| 5830 | """We're executing TPU Strategy.""" |
| 5831 | return (strategy is not None and |
| 5832 | strategy.__class__.__name__.startswith('TPUStrategy')) |
| 5833 | |
| 5834 | |
| 5835 | def cast_variables_to_tensor(tensors): |