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

Method ssf

tensorflow/python/autograph/pyct/qual_names.py:182–192  ·  view source on GitHub ↗

Simple symbol form.

(self)

Source from the content-addressed store, hash-verified

180 return str(self)
181
182 def ssf(self):
183 """Simple symbol form."""
184 ssfs = [n.ssf() if isinstance(n, QN) else n for n in self.qn]
185 ssf_string = ''
186 for i in range(0, len(self.qn) - 1):
187 if self.has_subscript():
188 delimiter = '_sub_'
189 else:
190 delimiter = '_'
191 ssf_string += ssfs[i] + delimiter
192 return ssf_string + ssfs[-1]
193
194 def ast(self):
195 """AST representation."""

Callers 5

test_basicMethod · 0.95
test_subscriptsMethod · 0.95
visit_IfMethod · 0.80
_replace_pop_callMethod · 0.80

Calls 2

has_subscriptMethod · 0.95
rangeFunction · 0.50

Tested by 2

test_basicMethod · 0.76
test_subscriptsMethod · 0.76