Package inference
Interface GrpcService.ModelInferResponse.InferOutputTensorOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcService.ModelInferResponse.InferOutputTensor,GrpcService.ModelInferResponse.InferOutputTensor.Builder
- Enclosing class:
GrpcService.ModelInferResponse
public static interface GrpcService.ModelInferResponse.InferOutputTensorOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParameters(String key) @@ ..@@ ..@@ ..@@ @@ ..com.google.protobuf.ByteString@@ @@ ..getName()@@ @@ ..com.google.protobuf.ByteString@@ @@ ..Deprecated.int@@ ..@@ ..getParametersOrDefault(String key, GrpcService.InferParameter defaultValue) @@ ..@@ ..longgetShape(int index) @@ @@ ..int@@ @@ ..@@ @@ ..boolean@@ ..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()@@ @@ .. cpp:var:: string name @@ @@ The tensor name. @@
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()@@ @@ .. cpp:var:: string name @@ @@ The tensor name. @@
string name = 1;- Returns:
- The bytes for name.
-
getDatatype
String getDatatype()@@ @@ .. cpp:var:: string datatype @@ @@ The tensor data type. @@
string datatype = 2;- Returns:
- The datatype.
-
getDatatypeBytes
com.google.protobuf.ByteString getDatatypeBytes()@@ @@ .. cpp:var:: string datatype @@ @@ The tensor data type. @@
string datatype = 2;- Returns:
- The bytes for datatype.
-
getShapeList
@@ @@ .. cpp:var:: int64 shape (repeated) @@ @@ The tensor shape. @@
repeated int64 shape = 3;- Returns:
- A list containing the shape.
-
getShapeCount
int getShapeCount()@@ @@ .. cpp:var:: int64 shape (repeated) @@ @@ The tensor shape. @@
repeated int64 shape = 3;- Returns:
- The count of shape.
-
getShape
long getShape(int index) @@ @@ .. cpp:var:: int64 shape (repeated) @@ @@ 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()@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional output tensor parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
containsParameters
@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional output tensor parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
getParameters
Deprecated.UsegetParametersMap()instead. -
getParametersMap
Map<String,GrpcService.InferParameter> getParametersMap()@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional output tensor parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
getParametersOrDefault
GrpcService.InferParameter getParametersOrDefault(String key, GrpcService.InferParameter defaultValue) @@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional output tensor parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
getParametersOrThrow
@@ .. cpp:var:: map<string,InferParameter> parameters @@ @@ Optional output tensor parameters. @@
map<string, .inference.InferParameter> parameters = 4; -
hasContents
boolean hasContents()@@ .. cpp:var:: InferTensorContents contents @@ @@ The tensor contents using a data-type format. This field @@ must not be specified if tensor contents are being specified @@ in ModelInferResponse.raw_output_contents. @@
.inference.InferTensorContents contents = 5;- Returns:
- Whether the contents field is set.
-
getContents
GrpcService.InferTensorContents getContents()@@ .. cpp:var:: InferTensorContents contents @@ @@ The tensor contents using a data-type format. This field @@ must not be specified if tensor contents are being specified @@ in ModelInferResponse.raw_output_contents. @@
.inference.InferTensorContents contents = 5;- Returns:
- The contents.
-
getContentsOrBuilder
GrpcService.InferTensorContentsOrBuilder getContentsOrBuilder()@@ .. cpp:var:: InferTensorContents contents @@ @@ The tensor contents using a data-type format. This field @@ must not be specified if tensor contents are being specified @@ in ModelInferResponse.raw_output_contents. @@
.inference.InferTensorContents contents = 5;
-