Package inference
Interface GrpcPredictV2.ModelInferRequest.InferInputTensorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcPredictV2.ModelInferRequest.InferInputTensor,GrpcPredictV2.ModelInferRequest.InferInputTensor.Builder
- Enclosing class:
GrpcPredictV2.ModelInferRequest
public static interface GrpcPredictV2.ModelInferRequest.InferInputTensorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParameters(String key) Optional inference input tensor parameters.The tensor contents using a data-type format.The tensor contents using a data-type format.The tensor data type.com.google.protobuf.ByteStringThe tensor data type.getName()The tensor name.com.google.protobuf.ByteStringThe tensor name.Deprecated.intOptional inference input tensor parameters.Optional inference input tensor parameters.getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional inference input tensor parameters.Optional inference input tensor parameters.longgetShape(int index) The tensor shape.intThe tensor shape.The tensor shape.booleanThe tensor contents using a data-type format.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()The tensor name.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The tensor name.
string name = 1;- Returns:
- The bytes for name.
-
getDatatype
String getDatatype()The tensor data type.
string datatype = 2;- Returns:
- The datatype.
-
getDatatypeBytes
com.google.protobuf.ByteString getDatatypeBytes()The tensor data type.
string datatype = 2;- Returns:
- The bytes for datatype.
-
getShapeList
The tensor shape.
repeated int64 shape = 3;- Returns:
- A list containing the shape.
-
getShapeCount
int getShapeCount()The tensor shape.
repeated int64 shape = 3;- Returns:
- The count of shape.
-
getShape
long getShape(int index) The tensor shape.
repeated int64 shape = 3;- Parameters:
index- The index of the element to return.- Returns:
- The shape at the given index.
-
getParametersCount
int getParametersCount()Optional inference input tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
containsParameters
Optional inference input tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
getParameters
Deprecated.UsegetParametersMap()instead. -
getParametersMap
Map<String,GrpcPredictV2.InferParameter> getParametersMap()Optional inference input tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
getParametersOrDefault
GrpcPredictV2.InferParameter getParametersOrDefault(String key, GrpcPredictV2.InferParameter defaultValue) Optional inference input tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
getParametersOrThrow
Optional inference input tensor parameters.
map<string, .inference.InferParameter> parameters = 4; -
hasContents
boolean hasContents()The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference request.
.inference.InferTensorContents contents = 5;- Returns:
- Whether the contents field is set.
-
getContents
GrpcPredictV2.InferTensorContents getContents()The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference request.
.inference.InferTensorContents contents = 5;- Returns:
- The contents.
-
getContentsOrBuilder
GrpcPredictV2.InferTensorContentsOrBuilder getContentsOrBuilder()The tensor contents using a data-type format. This field must not be specified if "raw" tensor contents are being used for the inference request.
.inference.InferTensorContents contents = 5;
-