MCPcopy Index your code
hub / github.com/pytorch/pytorch / test_valid_job

Method test_valid_job

caffe2/python/net_printer_test.py:73–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 self.assertTrue(len(net_printer.to_string(example_job())) > 0)
72
73 def test_valid_job(self):
74 job = example_job()
75 with job:
76 with Task():
77 # distributed_ctx_init_* ignored by analyzer
78 ops.Add(['distributed_ctx_init_a', 'distributed_ctx_init_b'])
79 # net_printer.analyze(example_job())
80 print(net_printer.to_string(example_job()))
81
82 def test_undefined_blob(self):
83 job = example_job()

Callers

nothing calls this directly

Calls 4

TaskClass · 0.90
example_jobFunction · 0.85
to_stringMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected