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

Method __init__

python/oneflow/framework/model.py:193–199  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

191 """
192
193 def __init__(self, *args, **kwargs):
194 super().__init__()
195 self._is_deprecated_function_style = (
196 kwargs["is_deprecated_function_style"]
197 if "is_deprecated_function_style" in kwargs
198 else False
199 )
200
201 def forward(self, *args, **kwargs):
202 """Same as `nn.Module.forward()`, here is to define the operations you want to use for prediction.

Callers 11

_setstateFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected