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

Method enter_section

tensorflow/python/autograph/pyct/cfg.py:455–465  ·  view source on GitHub ↗

Enters a regular section. Regular sections admit exit jumps, which end the section. Args: section_id: Hashable, the same node that will be used in calls to the ast_node arg passed to add_exit_node

(self, section_id)

Source from the content-addressed store, hash-verified

453 self.leaves = set()
454
455 def enter_section(self, section_id):
456 """Enters a regular section.
457
458 Regular sections admit exit jumps, which end the section.
459
460 Args:
461 section_id: Hashable, the same node that will be used in calls to the
462 ast_node arg passed to add_exit_node
463 """
464 assert section_id not in self.exits
465 self.exits[section_id] = set()
466
467 def exit_section(self, section_id):
468 """Exits a regular section."""

Callers 3

visit_FunctionDefMethod · 0.80
visit_WhileMethod · 0.80
visit_ForMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected