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

Method SetOnlyOnce

caffe2/python/core.py:2749–2751  ·  view source on GitHub ↗
(self, only_once)

Source from the content-addressed store, hash-verified

2747 self._step.num_concurrent_instances = num_concurrent_instances
2748
2749 def SetOnlyOnce(self, only_once):
2750 self._assert_can_mutate()
2751 self._step.only_once = only_once
2752
2753 def SetShouldStopBlob(self, should_stop_blob):
2754 assert isinstance(should_stop_blob, BlobReference), (

Callers 1

execution_stepFunction · 0.95

Calls 1

_assert_can_mutateMethod · 0.95

Tested by

no test coverage detected