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

Method testWhileLoopWithStep

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

Source from the content-addressed store, hash-verified

107 self.WhileLoopTest([self.cnt_net_, self.idle_net_])
108
109 def testWhileLoopWithStep(self):
110 step = control.Do('count', self.cnt_net_)
111 self.WhileLoopTest(step)
112 self.WhileLoopTest([step, self.idle_net_])
113
114 def UntilLoopTest(self, nets_or_steps):
115 step = control.Until('myUntil', self.not_cond_net_, nets_or_steps)

Callers

nothing calls this directly

Calls 1

WhileLoopTestMethod · 0.95

Tested by

no test coverage detected