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

Method _process

tensorflow/python/autograph/pyct/ast_util.py:85–97  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

83 self.name_map = name_map
84
85 def _process(self, node):
86 qn = anno.getanno(node, anno.Basic.QN)
87 if qn in self.name_map:
88 new_node = gast.Name(
89 str(self.name_map[qn]),
90 ctx=node.ctx,
91 annotation=None,
92 type_comment=None)
93 # All annotations get carried over.
94 for k in anno.keys(node):
95 anno.copyanno(node, new_node, k)
96 return new_node
97 return self.generic_visit(node)
98
99 def visit_Name(self, node):
100 return self._process(node)

Callers 2

visit_NameMethod · 0.95
visit_AttributeMethod · 0.95

Calls 3

NameMethod · 0.45
keysMethod · 0.45
generic_visitMethod · 0.45

Tested by

no test coverage detected