MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / add_output

Method add_output

tensorflow/lite/python/op_hint.py:406–426  ·  view source on GitHub ↗

Add a wrapped output argument to the hint. Args: *args: The output tensor. **kwargs: "name" label "tag" a tag to group multiple arguments that will be aggregated. I.e. a string like 'cool_input'. Basically multiple inputs can be added to the same

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

404 return self._inputs.add(*args, **kwargs)
405
406 def add_output(self, *args, **kwargs):
407 """Add a wrapped output argument to the hint.
408
409 Args:
410 *args: The output tensor.
411 **kwargs:
412 "name" label
413 "tag" a tag to group multiple arguments that will be aggregated. I.e.
414 a string like 'cool_input'. Basically multiple inputs can be added
415 to the same hint for parallel operations that will eventually be
416 combined. An example would be static_rnn which creates multiple copies
417 of state or inputs.
418 "aggregate" aggregation strategy that is valid only for tag non None.
419 Acceptable values are OpHint.AGGREGATE_FIRST, OpHint.AGGREGATE_LAST,
420 and OpHint.AGGREGATE_STACK.
421 "index_override" The global index to use. This corresponds to the
422 argument order in the final stub that will be generated.
423 Returns:
424 The wrapped output tensor.
425 """
426 return self._outputs.add(*args, **kwargs)
427
428 def add_inputs(self, *args, **kwargs):
429 """Add a sequence of inputs to the function invocation.

Callers 9

testAggregateMethod · 0.95
_build_ophinted_opMethod · 0.95
dynamic_rnnFunction · 0.95
callMethod · 0.80
callMethod · 0.80
GenerateRunMetadataMethod · 0.80
SetOutputMethod · 0.80
RecordDataTransferMethod · 0.80

Calls 1

addMethod · 0.45

Tested by 2

testAggregateMethod · 0.76
_build_ophinted_opMethod · 0.76