tensorflow::ops::DecodeJSONExample

#include <parsing_ops.h>

Convert JSON-encoded Example records to binary protocol buffer strings.

Summary

This op translates a tensor containing Example records, encoded using the standard JSON mapping, into a tensor containing the same records encoded as binary protocol buffers. The resulting tensor can then be fed to any of the other Example-parsing ops.

Arguments:

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

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 

© 2020 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/versions/r2.3/api_docs/cc/class/tensorflow/ops/decode-j-s-o-n-example