Link Search Menu Expand Document

DecodeJSONExample


tensorflow C++ API

tensorflow::ops::DecodeJSONExample

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


Summary

This op translates a tensor containing Example records, encoded using thestandard 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 ofjson_examples.

DecodeJSONExample block

Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_parsing_op.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • Input json_examples: connect Input node.

Return:

  • Output binary_examples : Output object of DecodeCSV class object.

Result:

  • std::vector(Tensor) result_binary_examples : Returned object of executed result by calling session.

Using Method