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

Method BuildAndRunPlan

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

Source from the content-addressed store, hash-verified

78 self.assertEqual(output, expects[i])
79
80 def BuildAndRunPlan(self, step):
81 plan = core.Plan("test")
82 plan.AddStep(control.Do('init', self.init_net_))
83 plan.AddStep(step)
84 self.assertEqual(workspace.RunPlan(plan), True)
85
86 def ForLoopTest(self, nets_or_steps):
87 step = control.For('myFor', nets_or_steps, self.N_)

Callers 14

ForLoopTestMethod · 0.95
WhileLoopTestMethod · 0.95
UntilLoopTestMethod · 0.95
DoWhileLoopTestMethod · 0.95
DoUntilLoopTestMethod · 0.95
IfCondTestMethod · 0.95
IfElseCondTestMethod · 0.95
IfNotCondTestMethod · 0.95
IfNotElseCondTestMethod · 0.95
testSwitchMethod · 0.95
testSwitchNotMethod · 0.95
testBoolNetMethod · 0.95

Calls 2

AddStepMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected