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

Method SetShouldStopBlob

caffe2/python/core.py:2753–2757  ·  view source on GitHub ↗
(self, should_stop_blob)

Source from the content-addressed store, hash-verified

2751 self._step.only_once = only_once
2752
2753 def SetShouldStopBlob(self, should_stop_blob):
2754 assert isinstance(should_stop_blob, BlobReference), (
2755 "expects BlobReference here, got {}".format(type(should_stop_blob)))
2756 self._assert_can_mutate()
2757 self._step.should_stop_blob = str(should_stop_blob)
2758
2759 def RunEveryMillis(self, interval):
2760 """

Callers 1

execution_stepFunction · 0.95

Calls 3

_assert_can_mutateMethod · 0.95
isinstanceFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected