MCPcopy 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
10def _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
21class Cluster(context.DefaultManaged):

Callers 1

add_nodeMethod · 0.85

Calls 2

copyFunction · 0.50
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…