Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ CurrentResource
Function
CurrentResource
python/oneflow/framework/c_api_util.py:35–37 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
33
34
35
def
CurrentResource():
36
resource = oneflow._oneflow_internal.CurrentResource()
37
return
text_format.Parse(resource, resource_util.Resource())
38
39
40
def
EnvResource():
Callers
nothing calls this directly
Calls
1
Parse
Method · 0.45
Tested by
no test coverage detected