ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

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