MCPcopy Create free account
hub / github.com/pytorch/pytorch / check_limiter_condition

Method check_limiter_condition

caffe2/python/dataio.py:390–398  ·  view source on GitHub ↗

Configure a net that is invoked between reading batches to see if limit condition is met. Must be implemented by subclass. Args: stop_condition_net: A net invoked to evaluate an early termination condition.

(self, stop_condition_net)

Source from the content-addressed store, hash-verified

388 raise NotImplementedError("Subclass must implement `setup_limiter`")
389
390 def check_limiter_condition(self, stop_condition_net):
391 """Configure a net that is invoked between reading batches to see if
392 limit condition is met. Must be implemented by subclass.
393
394 Args:
395 stop_condition_net: A net invoked to evaluate an early termination
396 condition.
397 """
398 raise NotImplementedError("Subclass must implement `check_limiter_condition")
399
400 def data_finished(self):
401 """

Callers 1

read_exMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected