Package inference

Class ModelConfigOuterClass.ModelOutput

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
inference.ModelConfigOuterClass.ModelOutput
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ModelConfigOuterClass.ModelOutputOrBuilder, Serializable
Enclosing class:
ModelConfigOuterClass

public static final class ModelConfigOuterClass.ModelOutput extends com.google.protobuf.GeneratedMessageV3 implements ModelConfigOuterClass.ModelOutputOrBuilder
@@
@@.. cpp:var:: message ModelOutput
@@
@@   An output produced by the model.
@@
 
Protobuf type inference.ModelOutput
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • DATA_TYPE_FIELD_NUMBER

      public static final int DATA_TYPE_FIELD_NUMBER
      See Also:
    • DIMS_FIELD_NUMBER

      public static final int DIMS_FIELD_NUMBER
      See Also:
    • RESHAPE_FIELD_NUMBER

      public static final int RESHAPE_FIELD_NUMBER
      See Also:
    • LABEL_FILENAME_FIELD_NUMBER

      public static final int LABEL_FILENAME_FIELD_NUMBER
      See Also:
    • IS_SHAPE_TENSOR_FIELD_NUMBER

      public static final int IS_SHAPE_TENSOR_FIELD_NUMBER
      See Also:
    • IS_NON_LINEAR_FORMAT_IO_FIELD_NUMBER

      public static final int IS_NON_LINEAR_FORMAT_IO_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getName

      public String getName()
      @@  .. cpp:var:: string name
      @@
      @@     The name of the output.
      @@
       
      string name = 1;
      Specified by:
      getName in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      @@  .. cpp:var:: string name
      @@
      @@     The name of the output.
      @@
       
      string name = 1;
      Specified by:
      getNameBytes in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The bytes for name.
    • getDataTypeValue

      public int getDataTypeValue()
      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the output.
      @@
       
      .inference.DataType data_type = 2;
      Specified by:
      getDataTypeValue in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The enum numeric value on the wire for dataType.
    • getDataType

      public ModelConfigOuterClass.DataType getDataType()
      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the output.
      @@
       
      .inference.DataType data_type = 2;
      Specified by:
      getDataType in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The dataType.
    • getDimsList

      public List<Long> getDimsList()
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Specified by:
      getDimsList in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      A list containing the dims.
    • getDimsCount

      public int getDimsCount()
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Specified by:
      getDimsCount in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The count of dims.
    • getDims

      public long getDims(int index)
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the output tensor.
      @@
       
      repeated int64 dims = 3;
      Specified by:
      getDims in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dims at the given index.
    • hasReshape

      public 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;
      Specified by:
      hasReshape in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      Whether the reshape field is set.
    • 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;
      Specified by:
      getReshape in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The reshape.
    • 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;
      Specified by:
      getReshapeOrBuilder in interface ModelConfigOuterClass.ModelOutputOrBuilder
    • getLabelFilename

      public 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;
      Specified by:
      getLabelFilename in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The labelFilename.
    • getLabelFilenameBytes

      public 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;
      Specified by:
      getLabelFilenameBytes in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The bytes for labelFilename.
    • getIsShapeTensor

      public 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;
      Specified by:
      getIsShapeTensor in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The isShapeTensor.
    • getIsNonLinearFormatIo

      public 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;
      Specified by:
      getIsNonLinearFormatIo in interface ModelConfigOuterClass.ModelOutputOrBuilder
      Returns:
      The isNonLinearFormatIo.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ModelConfigOuterClass.ModelOutput parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ModelConfigOuterClass.ModelOutput parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ModelConfigOuterClass.ModelOutput parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ModelConfigOuterClass.ModelOutput.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ModelConfigOuterClass.ModelOutput.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ModelConfigOuterClass.ModelOutput.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ModelConfigOuterClass.ModelOutput getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ModelConfigOuterClass.ModelOutput> parser()
    • getParserForType

      public com.google.protobuf.Parser<ModelConfigOuterClass.ModelOutput> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public ModelConfigOuterClass.ModelOutput getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder