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

Method testForLoopWithStep

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

Source from the content-addressed store, hash-verified

93 self.ForLoopTest([self.cnt_net_, self.idle_net_])
94
95 def testForLoopWithStep(self):
96 step = control.Do('count', self.cnt_net_)
97 self.ForLoopTest(step)
98 self.ForLoopTest([step, self.idle_net_])
99
100 def WhileLoopTest(self, nets_or_steps):
101 step = control.While('myWhile', self.cond_net_, nets_or_steps)

Callers

nothing calls this directly

Calls 1

ForLoopTestMethod · 0.95

Tested by

no test coverage detected