Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ parse
Function
parse
python/oneflow/nn/modules/utils.py:25–28 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
23
24
def
_ntuple(n):
25
def
parse(x):
26
if
isinstance(x, container_abcs.Iterable):
27
return
tuple(x)
28
return
tuple(repeat(x, n))
29
30
return
parse
31
Callers
11
WithMlirContext
Function · 0.85
structure_graph
Method · 0.85
DeserializeDeviceDescriptorList
Method · 0.85
Deserialize
Method · 0.85
Deserialize
Method · 0.85
Deserialize
Method · 0.85
DeserializeDeviceDescriptorList
Method · 0.85
Deserialize
Method · 0.85
DeserializeDeviceDescriptorList
Method · 0.85
KeyValueStoreOptions
Method · 0.85
LoadOneEmbedding
Function · 0.85
Calls
1
tuple
Class · 0.85
Tested by
no test coverage detected