Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/pytorch
/ _merge_node_kwargs
Function
_merge_node_kwargs
caffe2/python/task.py:10–18 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
8
9
10
def
_merge_node_kwargs(a, b):
11
# TODO(azzolini): consistency checks
12
if
a is None:
13
return
b
14
if
b is None:
15
return
a
16
c = copy(a)
17
c.update(b)
18
return
c
19
20
21
class
Cluster(context.DefaultManaged):
Callers
1
add_node
Method · 0.85
Calls
2
copy
Function · 0.50
update
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…