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

Method ForLoopTest

caffe2/python/control_test.py:86–89  ·  view source on GitHub ↗
(self, nets_or_steps)

Source from the content-addressed store, hash-verified

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_)
88 self.BuildAndRunPlan(step)
89 self.CheckNetOutput([(self.cnt_net_, self.N_)])
90
91 def testForLoopWithNets(self):
92 self.ForLoopTest(self.cnt_net_)

Callers 2

testForLoopWithNetsMethod · 0.95
testForLoopWithStepMethod · 0.95

Calls 2

BuildAndRunPlanMethod · 0.95
CheckNetOutputMethod · 0.95

Tested by

no test coverage detected