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

Method _assert_not_used

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

Source from the content-addressed store, hash-verified

561 return self._workspace_type
562
563 def _assert_not_used(self):
564 assert not self._already_used, (
565 'Cannot modify task since it is already been used.')
566
567 def add_output(self, output):
568 self._assert_not_used()

Callers 4

__enter__Method · 0.95
add_outputMethod · 0.95
add_outputsMethod · 0.95
set_stepMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected