MCPcopy Create free account
hub / github.com/pytorch/pytorch / add_ops

Method add_ops

caffe2/python/core_test.py:371–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369 all_outputs_list = []
370
371 def add_ops():
372 all_outputs_single.append(a.Sum([a_in1, a_in1]))
373 all_outputs_single.append(a.Sum([a_in1, a_in1]))
374 all_outputs_single.append(b.Sum([b_in1, b_in1]))
375 all_outputs_single.append(b.Sum([b_in1, b_in1]))
376 all_outputs_list.append(a.Sum([a_in1, a_in1], outputs=2))
377 all_outputs_list.append(a.Sum([a_in1, a_in1], outputs=2))
378 all_outputs_list.append(b.Sum([b_in1, b_in1], outputs=2))
379 all_outputs_list.append(b.Sum([b_in1, b_in1], outputs=2))
380
381 add_ops()
382 with core.NameScope('n1'):

Callers

nothing calls this directly

Calls 2

SumMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected