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

Method _disallow_in_graph_mode

tensorflow/python/framework/ops.py:520–523  ·  view source on GitHub ↗
(self, task)

Source from the content-addressed store, hash-verified

518 " decorating it directly with @tf.function.".format(task))
519
520 def _disallow_in_graph_mode(self, task):
521 raise errors.OperatorNotAllowedInGraphError(
522 "{} is not allowed in Graph execution. Use Eager execution or decorate"
523 " this function with @tf.function.".format(task))
524
525 def _disallow_bool_casting(self):
526 if ag_ctx.control_status_ctx().status == ag_ctx.Status.DISABLED:

Callers 2

_disallow_iterationMethod · 0.95

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected