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

Method device_mismatch

tensorflow/python/tpu/tensor_tracer.py:287–292  ·  view source on GitHub ↗
(device_type, op)

Source from the content-addressed store, hash-verified

285
286 @staticmethod
287 def device_mismatch(device_type, op):
288 if device_type == _DEVICE_TYPE_TPU:
289 # pylint: disable=protected-access
290 return tpu._TPU_REPLICATE_ATTR not in op.node_def.attr
291 # pylint: enable=protected-access
292 return False
293
294 @staticmethod
295 def unsafe_scalar_trace(op):

Callers 1

_skip_opMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected