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

Method __exit__

tensorflow/python/framework/ops.py:6442–6451  ·  view source on GitHub ↗
(self, type_arg, value_arg, traceback_arg)

Source from the content-addressed store, hash-verified

6440 raise
6441
6442 def __exit__(self, type_arg, value_arg, traceback_arg):
6443 if self._has_symbolic_input_in_eager:
6444 self._name_scope.__exit__(type_arg, value_arg, traceback_arg)
6445 elif self._in_eager_mode:
6446 self._ctx.scope_name = self._old_name
6447 else:
6448 self._name_scope.__exit__(type_arg, value_arg, traceback_arg)
6449 if self._g_manager is not None:
6450 self._g_manager.__exit__(type_arg, value_arg, traceback_arg)
6451 return False # False values do not suppress exceptions
6452
6453
6454def enter_eager_name_scope(ctx, name):

Callers 3

testNestingErrorGraphMethod · 0.45
testNestingErrorEagerMethod · 0.45
__enter__Method · 0.45

Calls

no outgoing calls

Tested by 2

testNestingErrorGraphMethod · 0.36
testNestingErrorEagerMethod · 0.36