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

Method UntilLoopTest

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

Source from the content-addressed store, hash-verified

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)
116 self.BuildAndRunPlan(step)
117 self.CheckNetOutput([(self.cnt_net_, self.N_)])
118
119 def testUntilLoopWithNet(self):
120 self.UntilLoopTest(self.cnt_net_)

Callers 2

testUntilLoopWithNetMethod · 0.95
testUntilLoopWithStepMethod · 0.95

Calls 2

BuildAndRunPlanMethod · 0.95
CheckNetOutputMethod · 0.95

Tested by

no test coverage detected