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

Method WhileLoopTest

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

Source from the content-addressed store, hash-verified

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)
102 self.BuildAndRunPlan(step)
103 self.CheckNetOutput([(self.cnt_net_, self.N_)])
104
105 def testWhileLoopWithNet(self):
106 self.WhileLoopTest(self.cnt_net_)

Callers 2

testWhileLoopWithNetMethod · 0.95
testWhileLoopWithStepMethod · 0.95

Calls 2

BuildAndRunPlanMethod · 0.95
CheckNetOutputMethod · 0.95

Tested by

no test coverage detected