Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
55
def
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
Split
Function · 0.85
SplitAndParseAs
Function · 0.85
Calls
3
GetDefaultSession
Function · 0.85
func
Function · 0.85
TryInit
Method · 0.45
Tested by
no test coverage detected