tensorflow::ops::DecodeJSONExample
#include <parsing_ops.h>
Convert JSON-encoded Example records to binary protocol buffer strings.
Summary
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:
- scope: A Scope object
- json_examples: Each string is a JSON object serialized according to the JSON mapping of the Example proto.
Returns:
-
Output: Each string is a binary Example protocol buffer corresponding to the respective element ofjson_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 | |
Public attributes
binary_examples
::tensorflow::Output binary_examples
operation
Operation operation
Public functions
DecodeJSONExample
DecodeJSONExample( const ::tensorflow::Scope & scope, ::tensorflow::Input json_examples )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
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/api_docs/cc/class/tensorflow/ops/decode-j-s-o-n-example