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

Method add_outputs

tensorflow/lite/python/op_hint.py:446–462  ·  view source on GitHub ↗

Add a sequence of outputs to the function invocation. Args: *args: List of outputs to be converted (should be tf.Tensor). **kwargs: See Returns: Wrapped outputs (identity standins that have additional metadata). These are also tf.Tensor's.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

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.
448
449 Args:
450 *args: List of outputs to be converted (should be tf.Tensor).
451 **kwargs: See
452 Returns:
453 Wrapped outputs (identity standins that have additional metadata). These
454 are also tf.Tensor's.
455 """
456 if "names" in kwargs:
457 return [
458 self._outputs.add(arg, name=name)
459 for arg, name in zip(args, kwargs["names"])
460 ]
461 else:
462 return [self._outputs.add(arg) for arg in args]
463
464
465class _LiteOperand(object):

Callers 13

_swishMethod · 0.95
_double_valuesMethod · 0.95
testTagsMethod · 0.95
TESTFunction · 0.45
PredictExecutionTimeFunction · 0.45
DescribeUnaryOpFunction · 0.45
DescribeBinaryOpFunction · 0.45
DescribeBiasAddFunction · 0.45
DescribePoolingOpFunction · 0.45
DescribeFusedBatchNormFunction · 0.45

Calls 1

addMethod · 0.45

Tested by 11

_swishMethod · 0.76
_double_valuesMethod · 0.76
testTagsMethod · 0.76
TESTFunction · 0.36
DescribeUnaryOpFunction · 0.36
DescribeBinaryOpFunction · 0.36
DescribeBiasAddFunction · 0.36
DescribePoolingOpFunction · 0.36
DescribeFusedBatchNormFunction · 0.36