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

Method AddScopedExternalInputs

caffe2/python/core.py:2088–2094  ·  view source on GitHub ↗
(self, *inputs)

Source from the content-addressed store, hash-verified

2086 self.Proto().external_output.extend([str(output)])
2087
2088 def AddScopedExternalInputs(self, *inputs):
2089 res = self.AddExternalInput(
2090 * [ScopedBlobReference(b) for b in inputs]
2091 )
2092 if not isinstance(res, list):
2093 res = [res]
2094 return res
2095
2096 def AddScopedExternalOutputs(self, *outputs):
2097 return self.AddExternalOutput(

Callers 4

apply_over_sequenceMethod · 0.80
_prepare_rnnFunction · 0.80
_prepare_gru_unit_opFunction · 0.80
_prepare_attentionFunction · 0.80

Calls 3

AddExternalInputMethod · 0.95
ScopedBlobReferenceFunction · 0.85
isinstanceFunction · 0.85

Tested by 3

_prepare_rnnFunction · 0.64
_prepare_gru_unit_opFunction · 0.64
_prepare_attentionFunction · 0.64