Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.contrib.proto.decode_proto

tf.contrib.proto.decode_proto(
    bytes,
    message_type,
    field_names,
    output_types,
    descriptor_source='local://',
    message_format='binary',
    sanitize=False,
    name=None
)

Defined in generated file: tensorflow/contrib/proto/python/ops/gen_decode_proto_op.py.

TODO: add doc.

Args:

  • bytes: A Tensor of type string.
  • message_type: A string.
  • field_names: A list of strings.
  • output_types: A list of tf.DTypes.
  • descriptor_source: An optional string. Defaults to "local://".
  • message_format: An optional string. Defaults to "binary".
  • sanitize: An optional bool. Defaults to False.
  • name: A name for the operation (optional).

Returns:

A tuple of Tensor objects (sizes, values).

  • sizes: A Tensor of type int32.
  • values: A list of Tensor objects of type output_types.