MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / is_tpu_strategy

Function is_tpu_strategy

tensorflow/python/keras/backend.py:5829–5832  ·  view source on GitHub ↗

We're executing TPU Strategy.

(strategy)

Source from the content-addressed store, hash-verified

5827
5828
5829def 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
5835def cast_variables_to_tensor(tensors):

Callers 1

_create_sessionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected