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

Method testDoWhileLoopWithStep

caffe2/python/control_test.py:137–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

135 self.DoWhileLoopTest([self.idle_net_, self.cnt_net_])
136
137 def testDoWhileLoopWithStep(self):
138 step = control.Do('count', self.cnt_net_)
139 self.DoWhileLoopTest(step)
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)

Callers

nothing calls this directly

Calls 1

DoWhileLoopTestMethod · 0.95

Tested by

no test coverage detected