def add_outputs(self, *args):
    "Add a sequence of outputs to the function invocation.\n\n    Args:\n      *args: List of outputs to be converted (should be tf.Tensor).\n    Returns:\n      Wrapped outputs (identity standins that have additional metadata). These\n      are also tf.Tensor's.\n    "

    def augmented_identity(arg):
        identity_op = _array_ops.identity(arg)
        identity_op.op._set_attr(OpHint.FUNCTION_NAME_ATTR, _attr_value_pb2.AttrValue(s=self._function_name))
        identity_op.op._set_attr(OpHint.FUNCTION_UUID_ATTR, _attr_value_pb2.AttrValue(s=self._unique_function_id))
        identity_op.op._set_attr(OpHint.FUNCTION_OUTPUT_INDEX_ATTR, _attr_value_pb2.AttrValue(i=self._curr_output_index))
        self._curr_output_index += 1
        return identity_op
    wrapped_outputs = [augmented_identity(arg) for arg in args]
    if (not self._stored_attrs):
        for (key, value) in self._attrs_to_store_later.iteritems():
            self._setattr(wrapped_outputs[0], ('_tflite_attr_' + key), value)
        self._stored_attrs = True
    return wrapped_outputs
Add a sequence of outputs to the function invocation.

Args:
  *args: List of outputs to be converted (should be tf.Tensor).
Returns:
  Wrapped outputs (identity standins that have additional metadata). These
  are also tf.Tensor's.
def add_outputs(self, *args):
    "Add a sequence of outputs to the function invocation.\n\n    Args:\n      *args: List of outputs to be converted (should be tf.Tensor).\n    Returns:\n      Wrapped outputs (identity standins that have additional metadata). These\n      are also tf.Tensor's.\n    "

    def augmented_identity(arg):
        identity_op = _array_ops.identity(arg)
        identity_op.op._set_attr(OpHint.FUNCTION_NAME_ATTR, _attr_value_pb2.AttrValue(s=self._function_name))
        identity_op.op._set_attr(OpHint.FUNCTION_UUID_ATTR, _attr_value_pb2.AttrValue(s=self._unique_function_id))
        identity_op.op._set_attr(OpHint.FUNCTION_OUTPUT_INDEX_ATTR, _attr_value_pb2.AttrValue(i=self._curr_output_index))
        self._curr_output_index += 1
        return identity_op
    wrapped_outputs = [augmented_identity(arg) for arg in args]
    if (not self._stored_attrs):
        for (key, value) in self._attrs_to_store_later.iteritems():
            self._setattr(wrapped_outputs[0], ('_tflite_attr_' + key), value)
        self._stored_attrs = True
    return wrapped_outputs