MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / __class__

Method __class__

python/oneflow/nn/graph/proxy.py:221–225  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219
220 @property
221 def __class__(self):
222 if self.to(GraphModule)._belonged_graph._is_user_mode == True:
223 return self.to(Module).__class__
224 else:
225 return type(self)
226
227 def __block_forward(self, *args, **kwargs):
228 self.to(GraphModule)._is_executing_forward = True

Callers 6

_execute_mappingMethod · 0.80
__getitem__Method · 0.80
__getitem__Method · 0.80
__getitem__Method · 0.80

Calls 2

typeEnum · 0.85
toMethod · 0.45

Tested by

no test coverage detected