I
- Type of model input.O
- Type of model output.public abstract class TensorFlowBaseModelParser<I,O> extends Object implements ModelParser<I,O,Model<I,O>>
Modifier and Type | Class and Description |
---|---|
static interface |
TensorFlowBaseModelParser.InputTransformer<I>
Input transformer that accepts input and transforms it into tensor.
|
static interface |
TensorFlowBaseModelParser.OutputTransformer<O>
Output transformer that accepts tensors and transforms them into output.
|
Constructor and Description |
---|
TensorFlowBaseModelParser() |
Modifier and Type | Method and Description |
---|---|
Model<I,O> |
parse(byte[] mdl)
Accepts serialized model represented by byte array, parses it and returns
Model . |
abstract org.tensorflow.Session |
parseModel(byte[] mdl)
Parses model specified in serialized form as byte array.
|
TensorFlowBaseModelParser<I,O> |
withInput(String name,
TensorFlowBaseModelParser.InputTransformer<I> transformer)
Setter that allows to specify additional input graph node and correspondent transformer that allows to transform
input into tensor.
|
TensorFlowBaseModelParser<I,O> |
withOutput(List<String> names,
TensorFlowBaseModelParser.OutputTransformer<O> transformer)
Setter that allows to specify output graph nodes and correspondent transformer that allow to transform tensors
into output.
|
public Model<I,O> parse(byte[] mdl)
Model
.public abstract org.tensorflow.Session parseModel(byte[] mdl)
mdl
- Inference model in serialized form as byte array.public TensorFlowBaseModelParser<I,O> withInput(String name, TensorFlowBaseModelParser.InputTransformer<I> transformer)
name
- Name of the input graph node.transformer
- Transformer that allows to transform input into tensor.public TensorFlowBaseModelParser<I,O> withOutput(List<String> names, TensorFlowBaseModelParser.OutputTransformer<O> transformer)
names
- List of output graph node names.transformer
- Transformer that allow to transform tensors into output.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024