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

Method visit_Raise

tensorflow/python/autograph/pyct/cfg.py:745–749  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

743 self._process_basic_statement(node)
744
745 def visit_Raise(self, node):
746 try_node, guards = self._get_enclosing_finally_scopes((gast.FunctionDef,))
747 if try_node is None:
748 raise ValueError('%s that is not enclosed by any FunctionDef' % node)
749 self.builder.add_error_node(node, guards)
750
751 def visit_Assert(self, node):
752 # Ignoring the effect of exceptions.

Callers

nothing calls this directly

Calls 2

add_error_nodeMethod · 0.80

Tested by

no test coverage detected