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

Method _AddOpInternal

tensorflow/python/tpu/tpu.py:1560–1568  ·  view source on GitHub ↗
(self, op)

Source from the content-addressed store, hash-verified

1558 self._AddOpInternal(op)
1559
1560 def _AddOpInternal(self, op):
1561 # pylint: disable=protected-access
1562 if op.type in _BLACKLISTED_INFERENCE_OPS:
1563 raise NotImplementedError(
1564 "Operation of type %s (%s) is not supported on the TPU for inference."
1565 " Execution will fail if this op is used in the graph. Make sure your"
1566 " variables are using variable_scope." % (op.type, op.name))
1567 if self._outer_context:
1568 self._outer_context.AddInnerOp(op)
1569
1570 def AddValue(self, val):
1571 result = val

Callers 2

AddOpMethod · 0.95
AddInnerOpMethod · 0.95

Calls 1

AddInnerOpMethod · 0.45

Tested by

no test coverage detected