W3cubDocs

/TensorFlow Python

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 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.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/proto/decode_proto