@FunctionalInterface public interface TensorFlowGraphLoader extends ModelLoader<TensorFlowGraphModel>
ModelLoader.ThrowableSupplier<M extends Model<?>>| Modifier and Type | Method and Description |
|---|---|
static TensorFlowGraphLoader |
create(byte[] graphDef,
org.tensorflow.framework.ConfigProto config,
String prefix)
Returns a TensorFlow model loader based on a serialized TensorFlow
Graph. |
static TensorFlowGraphLoader |
create(Model.Id id,
byte[] graphDef,
org.tensorflow.framework.ConfigProto config,
String prefix)
Returns a TensorFlow model loader based on a serialized TensorFlow
Graph. |
static TensorFlowGraphLoader |
create(Model.Id id,
String modelUri,
org.tensorflow.framework.ConfigProto config,
String prefix)
Returns a TensorFlow model loader based on a serialized TensorFlow
Graph. |
static TensorFlowGraphLoader |
create(ModelLoader.ThrowableSupplier<TensorFlowGraphModel> supplier)
Returns a TensorFlow model loader based on a serialized TensorFlow
Graph. |
static TensorFlowGraphLoader |
create(String modelUri,
org.tensorflow.framework.ConfigProto config,
String prefix)
Returns a TensorFlow model loader based on a serialized TensorFlow
Graph. |
get, get, lift, withstatic TensorFlowGraphLoader create(String modelUri, @Nullable org.tensorflow.framework.ConfigProto config, @Nullable String prefix)
Graph.modelUri - should point to a serialized TensorFlow Graph file on
local filesystem, resource, GCS etc.config - optional TensorFlow ConfigProto config.prefix - optional prefix that will be prepended to names in the graph.static TensorFlowGraphLoader create(Model.Id id, String modelUri, @Nullable org.tensorflow.framework.ConfigProto config, @Nullable String prefix)
Graph.id - model id @{link Model.Id}.modelUri - should point to a serialized TensorFlow Graph file on
local filesystem, resource, GCS etc.config - optional TensorFlow ConfigProto config.prefix - optional prefix that will be prepended to names in the graph.static TensorFlowGraphLoader create(byte[] graphDef, @Nullable org.tensorflow.framework.ConfigProto config, @Nullable String prefix)
Graph.graphDef - byte array representing the TensorFlow Graph definition.config - optional TensorFlow ConfigProto config.prefix - optional prefix that will be prepended to names in the graph.static TensorFlowGraphLoader create(Model.Id id, byte[] graphDef, @Nullable org.tensorflow.framework.ConfigProto config, @Nullable String prefix)
Graph.id - model id @{link Model.Id}.graphDef - byte array representing the TensorFlow Graph definition.config - optional TensorFlow ConfigProto config.prefix - optional prefix that will be prepended to names in the graph.static TensorFlowGraphLoader create(ModelLoader.ThrowableSupplier<TensorFlowGraphModel> supplier)
Graph.supplier - TensorFlowGraphModel supplier.Copyright © 2018. All rights reserved.