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

Method DoUntilLoopTest

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

Source from the content-addressed store, hash-verified

140 self.DoWhileLoopTest([self.idle_net_, step])
141
142 def DoUntilLoopTest(self, nets_or_steps):
143 step = control.DoUntil('myDoUntil', self.not_cond_net_, nets_or_steps)
144 self.BuildAndRunPlan(step)
145 self.CheckNetOutput([(self.cnt_net_, self.N_)])
146
147 def testDoUntilLoopWithNet(self):
148 self.DoUntilLoopTest(self.cnt_net_)

Callers 2

Calls 2

BuildAndRunPlanMethod · 0.95
CheckNetOutputMethod · 0.95

Tested by

no test coverage detected