Package inference
Interface ModelConfigOuterClass.ModelOutputOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
ModelConfigOuterClass.ModelOutput,ModelConfigOuterClass.ModelOutput.Builder
- Enclosing class:
ModelConfigOuterClass
public static interface ModelConfigOuterClass.ModelOutputOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
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 name of the output. @@
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()@@ .. cpp:var:: string name @@ @@ The name of the output. @@
string name = 1;- Returns:
- The bytes for name.
-
getDataTypeValue
int getDataTypeValue()@@ .. cpp:var:: DataType data_type @@ @@ The data-type of the output. @@
.inference.DataType data_type = 2;- Returns:
- The enum numeric value on the wire for dataType.
-
getDataType
ModelConfigOuterClass.DataType getDataType()@@ .. cpp:var:: DataType data_type @@ @@ The data-type of the output. @@
.inference.DataType data_type = 2;- Returns:
- The dataType.
-
getDimsList
@@ .. cpp:var:: int64 dims (repeated) @@ @@ The dimensions/shape of the output tensor. @@
repeated int64 dims = 3;- Returns:
- A list containing the dims.
-
getDimsCount
int getDimsCount()@@ .. cpp:var:: int64 dims (repeated) @@ @@ The dimensions/shape of the output tensor. @@
repeated int64 dims = 3;- Returns:
- The count of dims.
-
getDims
long getDims(int index) @@ .. cpp:var:: int64 dims (repeated) @@ @@ The dimensions/shape of the output tensor. @@
repeated int64 dims = 3;- Parameters:
index- The index of the element to return.- Returns:
- The dims at the given index.
-
hasReshape
boolean hasReshape()@@ .. cpp:var:: ModelTensorReshape reshape @@ @@ The shape produced for this output by the backend. The output will @@ be reshaped from this to the shape specified in 'dims' before being @@ returned in the inference response. The reshape must have the same @@ number of elements as the output shape specified by 'dims'. Optional. @@
.inference.ModelTensorReshape reshape = 5;- Returns:
- Whether the reshape field is set.
-
getReshape
ModelConfigOuterClass.ModelTensorReshape getReshape()@@ .. cpp:var:: ModelTensorReshape reshape @@ @@ The shape produced for this output by the backend. The output will @@ be reshaped from this to the shape specified in 'dims' before being @@ returned in the inference response. The reshape must have the same @@ number of elements as the output shape specified by 'dims'. Optional. @@
.inference.ModelTensorReshape reshape = 5;- Returns:
- The reshape.
-
getReshapeOrBuilder
ModelConfigOuterClass.ModelTensorReshapeOrBuilder getReshapeOrBuilder()@@ .. cpp:var:: ModelTensorReshape reshape @@ @@ The shape produced for this output by the backend. The output will @@ be reshaped from this to the shape specified in 'dims' before being @@ returned in the inference response. The reshape must have the same @@ number of elements as the output shape specified by 'dims'. Optional. @@
.inference.ModelTensorReshape reshape = 5; -
getLabelFilename
String getLabelFilename()@@ .. cpp:var:: string label_filename @@ @@ The label file associated with this output. Should be specified only @@ for outputs that represent classifications. Optional. @@
string label_filename = 4;- Returns:
- The labelFilename.
-
getLabelFilenameBytes
com.google.protobuf.ByteString getLabelFilenameBytes()@@ .. cpp:var:: string label_filename @@ @@ The label file associated with this output. Should be specified only @@ for outputs that represent classifications. Optional. @@
string label_filename = 4;- Returns:
- The bytes for labelFilename.
-
getIsShapeTensor
boolean getIsShapeTensor()@@ .. cpp:var:: bool is_shape_tensor @@ @@ Whether or not the output is a shape tensor to the model. This field @@ is currently supported only for the TensorRT model. An error will be @@ generated if this specification does not comply with underlying @@ model. @@
bool is_shape_tensor = 6;- Returns:
- The isShapeTensor.
-
getIsNonLinearFormatIo
boolean getIsNonLinearFormatIo()@@ .. cpp:var:: bool is_non_linear_format_io @@ @@ Indicates whether the output tensor uses a non-linear IO format. This @@ field is currently supported only for TensorRT models. An error will @@ be generated if this specification does not comply with the @@ underlying model. @@
bool is_non_linear_format_io = 7;- Returns:
- The isNonLinearFormatIo.
-