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

Method DoWhileLoopTest

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

Source from the content-addressed store, hash-verified

126 self.UntilLoopTest([step, self.idle_net_])
127
128 def DoWhileLoopTest(self, nets_or_steps):
129 step = control.DoWhile('myDoWhile', self.cond_net_, nets_or_steps)
130 self.BuildAndRunPlan(step)
131 self.CheckNetOutput([(self.cnt_net_, self.N_)])
132
133 def testDoWhileLoopWithNet(self):
134 self.DoWhileLoopTest(self.cnt_net_)

Callers 2

Calls 2

BuildAndRunPlanMethod · 0.95
CheckNetOutputMethod · 0.95

Tested by

no test coverage detected