InputT - type of the raw input to the feature extraction.VectorT - type of the feature extraction output.ValueT - type of the prediction result.@FunctionalInterface public interface TensorFlowPredictFn<InputT,VectorT,ValueT> extends PredictFns.AsyncPredictFn<TensorFlowModel,InputT,VectorT,ValueT>
PredictFns.AsyncPredictFn using TensorFlowModel.| Modifier and Type | Method and Description |
|---|---|
static <InputT,ValueT> |
example(Function<Map<String,JTensor>,ValueT> outTensorExtractor,
String... fetchOps)
TensorFlow Example prediction function.
|
static <InputT,ValueT> |
exampleBatch(Function<Map<String,JTensor>,ValueT> outTensorExtractor,
String... fetchOps)
TensorFlow Example prediction function.
|
apply, lift, withstatic <InputT,ValueT> TensorFlowPredictFn<InputT,org.tensorflow.example.Example,ValueT> example(Function<Map<String,JTensor>,ValueT> outTensorExtractor, String... fetchOps)
outTensorExtractor - Function to extract the output value from JTensor'sfetchOps - operations to fetch.static <InputT,ValueT> TensorFlowPredictFn<InputT,List<org.tensorflow.example.Example>,ValueT> exampleBatch(Function<Map<String,JTensor>,ValueT> outTensorExtractor, String... fetchOps)
outTensorExtractor - Function to extract the output value from JTensor'sfetchOps - operations to fetch.Copyright © 2018. All rights reserved.