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

Method add_input

tensorflow/lite/python/op_hint.py:384–404  ·  view source on GitHub ↗

Add a wrapped input argument to the hint. Args: *args: The input 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 hi

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

382 # pylint: enable=protected-access
383
384 def add_input(self, *args, **kwargs):
385 """Add a wrapped input argument to the hint.
386
387 Args:
388 *args: The input tensor.
389 **kwargs:
390 "name" label
391 "tag" a tag to group multiple arguments that will be aggregated. I.e.
392 a string like 'cool_input'. Basically multiple inputs can be added
393 to the same hint for parallel operations that will eventually be
394 combined. An example would be static_rnn which creates multiple copies
395 of state or inputs.
396 "aggregate" aggregation strategy that is valid only for tag non None.
397 Acceptable values are OpHint.AGGREGATE_FIRST, OpHint.AGGREGATE_LAST,
398 and OpHint.AGGREGATE_STACK.
399 "index_override" The global index to use. This corresponds to the
400 argument order in the final stub that will be generated.
401 Returns:
402 The wrapped input tensor.
403 """
404 return self._inputs.add(*args, **kwargs)
405
406 def add_output(self, *args, **kwargs):
407 """Add a wrapped output argument to the hint.

Callers 15

testTagsMethod · 0.95
testOverrideIndexMethod · 0.95
testAggregateMethod · 0.95
_build_ophinted_opMethod · 0.95
dynamic_rnnFunction · 0.95
TESTFunction · 0.45
TESTFunction · 0.45
TestRemoveNodesMethod · 0.45
TestRemoveOutputNodesMethod · 0.45

Calls 1

addMethod · 0.45

Tested by 15

testTagsMethod · 0.76
testOverrideIndexMethod · 0.76
testAggregateMethod · 0.76
_build_ophinted_opMethod · 0.76
TESTFunction · 0.36
TESTFunction · 0.36
TestRemoveNodesMethod · 0.36
TestRemoveOutputNodesMethod · 0.36
TestSimpleTreeMethod · 0.36
TestRenameOpMethod · 0.36