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

Method iter

caffe2/python/net_builder.py:563–568  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

561 self._num_iters = None
562
563 def iter(self):
564 assert self._num_iters is not None, (
565 'This loop does not have a number of iterations.')
566 assert self._iter is not None, (
567 'iter() must be called from inside the loop context')
568 return self._iter
569
570 def __enter__(self):
571 builder = NetBuilder.__enter__(self)

Callers 5

IterMethod · 0.45
AddParameterUpdateFunction · 0.45
_actual_loopMethod · 0.45
example_loopFunction · 0.45
build_conv_modelFunction · 0.45

Calls

no outgoing calls

Tested by 3

_actual_loopMethod · 0.36
example_loopFunction · 0.36
build_conv_modelFunction · 0.36