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

Function Func

python/oneflow/framework/session_context.py:57–59  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

55def try_init_default_session(func):
56 @functools.wraps(func)
57 def Func(*args, **kwargs):
58 GetDefaultSession().TryInit()
59 return func(*args, **kwargs)
60
61 return Func
62

Callers 2

SplitFunction · 0.85
SplitAndParseAsFunction · 0.85

Calls 3

GetDefaultSessionFunction · 0.85
funcFunction · 0.85
TryInitMethod · 0.45

Tested by

no test coverage detected