@Operator(group="io") 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 wrapping a new DecodeJsonExample operation.
|
equals, hashCode, op, toString
public static DecodeJsonExample create(Scope scope, Operand<String> jsonExamples)
scope
- current 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()
Operand
Inputs 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 © 2022. All rights reserved.