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

Method __init__

tensorflow/python/autograph/pyct/transformer.py:100–106  ·  view source on GitHub ↗
(self, type_)

Source from the content-addressed store, hash-verified

98 """
99
100 def __init__(self, type_):
101 # Because we override __setattr__, we need to attach these attributes using
102 # the superclass' setattr.
103 object.__setattr__(self, 'type', type_)
104 object.__setattr__(self, '_stack', [])
105 if not hasattr(type_, 'no_root'):
106 self.enter()
107
108 def enter(self):
109 self._stack.append(self.type())

Callers

nothing calls this directly

Calls 2

enterMethod · 0.95
__setattr__Method · 0.45

Tested by

no test coverage detected