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

Method add_inputs

tensorflow/lite/python/op_hint.py:428–444  ·  view source on GitHub ↗

Add a sequence of inputs to the function invocation. Args: *args: List of inputs to be converted (should be Tf.Tensor). **kwargs: This allows 'names' which should be a list of names. Returns: Wrapped inputs (identity standins that have additional metadata). These are

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

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.
430
431 Args:
432 *args: List of inputs to be converted (should be Tf.Tensor).
433 **kwargs: This allows 'names' which should be a list of names.
434 Returns:
435 Wrapped inputs (identity standins that have additional metadata). These
436 are also are also tf.Tensor's.
437 """
438 if "names" in kwargs:
439 return [
440 self._inputs.add(arg, name=name)
441 for arg, name in zip(args, kwargs["names"])
442 ]
443 else:
444 return [self._inputs.add(arg) for arg in args]
445
446 def add_outputs(self, *args, **kwargs):
447 """Add a sequence of outputs to the function invocation.

Callers 15

_swishMethod · 0.95
_double_valuesMethod · 0.95
testTagsMethod · 0.95
EnqueueOpMethod · 0.45
TESTFunction · 0.45
PredictExecutionTimeFunction · 0.45
BuildOpInfoWithoutDeviceFunction · 0.45
DescribeMatrixFunction · 0.45
DescribeConvolutionFunction · 0.45

Calls 1

addMethod · 0.45

Tested by 15

_swishMethod · 0.76
_double_valuesMethod · 0.76
testTagsMethod · 0.76
TESTFunction · 0.36
DescribeMatrixFunction · 0.36
DescribeConvolutionFunction · 0.36
DescribeUnaryOpFunction · 0.36
DescribeBinaryOpFunction · 0.36