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

Method Else

caffe2/python/net_builder.py:606–609  ·  view source on GitHub ↗
(self, name=None)

Source from the content-addressed store, hash-verified

604 cond, name=name or self.name, _already_ran=self._already_ran))
605
606 def Else(self, name=None):
607 assert not self._is_else, 'Elif not allowed for an Else.'
608 return NetBuilder.current().add(
609 _RunIf(name=name or self.name, _already_ran=self._already_ran))
610
611
612class _RunIfNet(NetBuilder):

Callers 5

_actual_loopMethod · 0.45
test_if_netMethod · 0.45
testIfMethod · 0.45
testWhileMethod · 0.45
example_loopFunction · 0.45

Calls 3

_RunIfClass · 0.85
currentMethod · 0.80
addMethod · 0.45

Tested by 5

_actual_loopMethod · 0.36
test_if_netMethod · 0.36
testIfMethod · 0.36
testWhileMethod · 0.36
example_loopFunction · 0.36