Convert JSON-encoded Example records to binary protocol buffer strings.
tf.raw_ops.DecodeJSONExample(
json_examples, name=None
)
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 | |
---|---|
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 .
|