public final class TensorFlowNativeModel<T extends Output<T>> extends TensorFlowModel<T>
It accepts an FeatureConverter
that converts an example's features into a set of Tensor
s, and an
OutputConverter
that converts a Tensor
into a Prediction
.
This model's serialized form stores the weights and is entirely self contained.
If you wish to convert it into a model which uses checkpoints then call convertToCheckpointModel(java.lang.String, java.lang.String)
.
The model's serialVersionUID is set to the major TensorFlow version number times 100.
N.B. TensorFlow support is experimental and may change without a major version bump.
batchSize, closed, featureConverter, modelGraph, outputConverter, outputName, session
ALL_OUTPUTS, BIAS_FEATURE, featureIDMap, generatesProbabilities, name, outputIDInfo, provenance, provenanceOutput
Modifier and Type | Method and Description |
---|---|
TensorFlowCheckpointModel<T> |
convertToCheckpointModel(String checkpointDirectory,
String checkpointName)
Creates a
TensorFlowCheckpointModel version of this model. |
protected TensorFlowNativeModel<T> |
copy(String newName,
ModelProvenance newProvenance)
Copies a model, replacing it's provenance and name with the supplied values.
|
close, exportModel, getBatchSize, getExcuse, getOutputName, getTopFeatures, innerPredict, predict, setBatchSize
copy, generatesProbabilities, getExcuses, getFeatureIDMap, getName, getOutputIDInfo, getProvenance, predict, predict, setName, toString, validate
protected TensorFlowNativeModel<T> copy(String newName, ModelProvenance newProvenance)
Model
Used to provide the provenance removal functionality.
public TensorFlowCheckpointModel<T> convertToCheckpointModel(String checkpointDirectory, String checkpointName)
TensorFlowCheckpointModel
version of this model.checkpointDirectory
- The directory to write the checkpoint to.checkpointName
- The name of the checkpoint files.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.