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

Method testRunPlan

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

Source from the content-addressed store, hash-verified

78 self.assertNotIn("testblob", workspace.C.Workspace.current.blobs)
79
80 def testRunPlan(self):
81 plan = core.Plan("test-plan")
82 plan.AddStep(core.ExecutionStep("test-step", self.net))
83 self.assertEqual(workspace.RunPlan(plan.Proto().SerializeToString()), True)
84 self.assertEqual(workspace.HasBlob("testblob"), True)
85
86 def testRunPlanInBackground(self):
87 plan = core.Plan("test-plan")

Callers

nothing calls this directly

Calls 3

AddStepMethod · 0.95
ProtoMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected