Package tensorflow.serving
Interface Predict.PredictRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Predict.PredictRequest,Predict.PredictRequest.Builder
- Enclosing class:
- Predict
public static interface Predict.PredictRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description booleancontainsInputs(java.lang.String key)Input tensors.java.util.Map<java.lang.String,TensorProto>getInputs()Deprecated.intgetInputsCount()Input tensors.java.util.Map<java.lang.String,TensorProto>getInputsMap()Input tensors.TensorProtogetInputsOrDefault(java.lang.String key, TensorProto defaultValue)Input tensors.TensorProtogetInputsOrThrow(java.lang.String key)Input tensors.Model.ModelSpecgetModelSpec()Model Specification.Model.ModelSpecOrBuildergetModelSpecOrBuilder()Model Specification.java.lang.StringgetOutputFilter(int index)Output filter.com.google.protobuf.ByteStringgetOutputFilterBytes(int index)Output filter.intgetOutputFilterCount()Output filter.java.util.List<java.lang.String>getOutputFilterList()Output filter.booleanhasModelSpec()Model Specification.Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasModelSpec
boolean hasModelSpec()Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;- Returns:
- Whether the modelSpec field is set.
-
getModelSpec
Model.ModelSpec getModelSpec()Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1;- Returns:
- The modelSpec.
-
getModelSpecOrBuilder
Model.ModelSpecOrBuilder getModelSpecOrBuilder()Model Specification. If version is not specified, will use the latest (numerical) version.
.tensorflow.serving.ModelSpec model_spec = 1; -
getInputsCount
int getInputsCount()Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
containsInputs
boolean containsInputs(java.lang.String key)Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
getInputs
Deprecated.UsegetInputsMap()instead. -
getInputsMap
java.util.Map<java.lang.String,TensorProto> getInputsMap()Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
getInputsOrDefault
Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
getInputsOrThrow
Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.
map<string, .tensorflow.TensorProto> inputs = 2; -
getOutputFilterList
java.util.List<java.lang.String> getOutputFilterList()Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.
repeated string output_filter = 3;- Returns:
- A list containing the outputFilter.
-
getOutputFilterCount
int getOutputFilterCount()Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.
repeated string output_filter = 3;- Returns:
- The count of outputFilter.
-
getOutputFilter
java.lang.String getOutputFilter(int index)Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.
repeated string output_filter = 3;- Parameters:
index- The index of the element to return.- Returns:
- The outputFilter at the given index.
-
getOutputFilterBytes
com.google.protobuf.ByteString getOutputFilterBytes(int index)Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.
repeated string output_filter = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the outputFilter at the given index.
-