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

Method add_output

caffe2/python/task.py:567–572  ·  view source on GitHub ↗
(self, output)

Source from the content-addressed store, hash-verified

565 'Cannot modify task since it is already been used.')
566
567 def add_output(self, output):
568 self._assert_not_used()
569 output = (
570 output if isinstance(output, TaskOutput) else TaskOutput(output))
571 self._outputs.append(output)
572 return output
573
574 def add_outputs(self, outputs):
575 self._assert_not_used()

Callers 4

add_outputsMethod · 0.95
get_stepMethod · 0.95
final_outputFunction · 0.80
check_db_existsMethod · 0.80

Calls 4

_assert_not_usedMethod · 0.95
isinstanceFunction · 0.85
TaskOutputClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected