@Operator public final class DecodeJSONExample extends PrimitiveOp implements Operand<String>
This op translates a tensor containing Example records, encoded using the [standard JSON mapping](https://developers.google.com/protocol-buffers/docs/proto3#json), 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.
operation| Modifier and Type | Method and Description |
|---|---|
Output<String> |
asOutput()
Returns the symbolic handle of a tensor.
|
Output<String> |
binaryExamples()
Each string is a binary Example protocol buffer corresponding
to the respective element of `json_examples`.
|
static DecodeJSONExample |
create(Scope scope,
Operand<String> jsonExamples)
Factory method to create a class to wrap a new DecodeJSONExample operation to the graph.
|
equals, hashCode, toStringpublic static DecodeJSONExample create(Scope scope, Operand<String> jsonExamples)
scope - current graph scopejsonExamples - Each string is a JSON object serialized according to the JSON
mapping of the Example proto.public Output<String> binaryExamples()
public Output<String> asOutput()
OperandInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput in interface Operand<String>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.