#include <parsing_ops.h>
Convert JSON-encoded Example records to binary protocol buffer strings.
Note: This is not a general purpose JSON parsing op.
This op converts JSON-serialized tf.train.Example
(created with json_format.MessageToJson
, following the standard JSON mapping) to a binary-serialized tf.train.Example
(equivalent to Example.SerializeToString()
) suitable for conversion to tensors with tf.io.parse_example
.
Args:
Returns:
Output
: Each string is a binary Example protocol buffer corresponding to the respective element of json_examples
. Constructors and Destructors | |
---|---|
DecodeJSONExample(const ::tensorflow::Scope & scope, ::tensorflow::Input json_examples) |
Public attributes | |
---|---|
binary_examples | |
operation |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
::tensorflow::Output binary_examples
Operation operation
DecodeJSONExample( const ::tensorflow::Scope & scope, ::tensorflow::Input json_examples )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/cc/class/tensorflow/ops/decode-j-s-o-n-example