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

Method AddExternalOutput

caffe2/python/core.py:2081–2086  ·  view source on GitHub ↗
(self, *outputs)

Source from the content-addressed store, hash-verified

2079 return refs[0] if len(refs) == 1 else refs
2080
2081 def AddExternalOutput(self, *outputs):
2082 for output in outputs:
2083 assert isinstance(output, BlobReference)
2084 assert self.BlobIsDefined(output), "{} is not defined".format(output)
2085 for output in outputs:
2086 self.Proto().external_output.extend([str(output)])
2087
2088 def AddScopedExternalInputs(self, *inputs):
2089 res = self.AddExternalInput(

Callers 15

set_output_recordMethod · 0.95
AddExternalOutputsMethod · 0.95
BoolNetFunction · 0.95
NotNetFunction · 0.95
_CopyConditionBlobNetFunction · 0.95
MergeConditionNetsFunction · 0.95
CombineConditionsFunction · 0.95
add_if_opFunction · 0.95
add_while_opFunction · 0.95
_create_modelMethod · 0.80

Calls 5

BlobIsDefinedMethod · 0.95
ProtoMethod · 0.95
isinstanceFunction · 0.85
formatMethod · 0.45
extendMethod · 0.45

Tested by 6

_create_modelMethod · 0.64
setUpMethod · 0.64
test_sum_mulMethod · 0.64
test_mulMethod · 0.64
test_extractMethod · 0.64
_applyMethod · 0.64