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

Method has_stopped

caffe2/python/net_builder.py:542–548  ·  view source on GitHub ↗

Return a blob that will be set to scalar bool `True` after this net builder ran, iff it was halted early.

(self)

Source from the content-addressed store, hash-verified

540 _RunOnce.__exit__(self, etype, *args)
541
542 def has_stopped(self):
543 """
544 Return a blob that will be set to scalar bool `True` after
545 this net builder ran, iff it was halted early.
546 """
547 assert self._ran, 'Context not used yet.'
548 return self._stopped
549
550
551class _Loop(NetBuilder):

Callers 1

_test_outerFunction · 0.80

Calls

no outgoing calls

Tested by 1

_test_outerFunction · 0.64