tf.raw_ops.DecodeJSONExample
Stay organized with collections
Save and categorize content based on your preferences.
Convert JSON-encoded Example records to binary protocol buffer strings.
tf.raw_ops.DecodeJSONExample(
json_examples, name=None
)
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.
Args |
json_examples
|
A Tensor of type string .
Each string is a JSON object serialized according to the JSON
mapping of the Example proto.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor of type string .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.raw_ops.DecodeJSONExample\n\n\u003cbr /\u003e\n\nConvert JSON-encoded Example records to binary protocol buffer strings.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.DecodeJSONExample`](/api_docs/python/tf/raw_ops/DecodeJSONExample)\n\n\u003cbr /\u003e\n\n tf.raw_ops.DecodeJSONExample(\n json_examples, name=None\n )\n\nThis op translates a tensor containing Example records, encoded using\nthe [standard JSON\nmapping](https://developers.google.com/protocol-buffers/docs/proto3#json),\ninto a tensor containing the same records encoded as binary protocol\nbuffers. The resulting tensor can then be fed to any of the other\nExample-parsing ops.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------|\n| `json_examples` | A `Tensor` of type `string`. Each string is a JSON object serialized according to the JSON mapping of the Example proto. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type `string`. ||\n\n\u003cbr /\u003e"]]