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

Method testRunPlanInBackground

caffe2/python/workspace_test.py:86–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 self.assertEqual(workspace.HasBlob("testblob"), True)
85
86 def testRunPlanInBackground(self):
87 plan = core.Plan("test-plan")
88 plan.AddStep(core.ExecutionStep("test-step", self.net))
89 background_plan = workspace.RunPlanInBackground(plan)
90 while not background_plan.is_done():
91 pass
92 self.assertEqual(background_plan.is_succeeded(), True)
93 self.assertEqual(workspace.HasBlob("testblob"), True)
94
95 def testConstructPlanFromSteps(self):
96 step = core.ExecutionStep("test-step-as-plan", self.net)

Callers

nothing calls this directly

Calls 2

AddStepMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected