Package inference

Interface ModelConfigOuterClass.ModelInputOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ModelConfigOuterClass.ModelInput, ModelConfigOuterClass.ModelInput.Builder
Enclosing class:
ModelConfigOuterClass

public static interface ModelConfigOuterClass.ModelInputOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getName

      String getName()
      @@  .. cpp:var:: string name
      @@
      @@     The name of the input.
      @@
       
      string name = 1;
      Returns:
      The name.
    • getNameBytes

      com.google.protobuf.ByteString getNameBytes()
      @@  .. cpp:var:: string name
      @@
      @@     The name of the input.
      @@
       
      string name = 1;
      Returns:
      The bytes for name.
    • getDataTypeValue

      int getDataTypeValue()
      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the input.
      @@
       
      .inference.DataType data_type = 2;
      Returns:
      The enum numeric value on the wire for dataType.
    • getDataType

      @@  .. cpp:var:: DataType data_type
      @@
      @@     The data-type of the input.
      @@
       
      .inference.DataType data_type = 2;
      Returns:
      The dataType.
    • getFormatValue

      int getFormatValue()
      @@  .. cpp:var:: Format format
      @@
      @@     The format of the input. Optional.
      @@
       
      .inference.ModelInput.Format format = 3;
      Returns:
      The enum numeric value on the wire for format.
    • getFormat

      @@  .. cpp:var:: Format format
      @@
      @@     The format of the input. Optional.
      @@
       
      .inference.ModelInput.Format format = 3;
      Returns:
      The format.
    • getDimsList

      List<Long> getDimsList()
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the input tensor that must be provided
      @@     when invoking the inference API for this model.
      @@
       
      repeated int64 dims = 4;
      Returns:
      A list containing the dims.
    • getDimsCount

      int getDimsCount()
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the input tensor that must be provided
      @@     when invoking the inference API for this model.
      @@
       
      repeated int64 dims = 4;
      Returns:
      The count of dims.
    • getDims

      long getDims(int index)
      @@  .. cpp:var:: int64 dims (repeated)
      @@
      @@     The dimensions/shape of the input tensor that must be provided
      @@     when invoking the inference API for this model.
      @@
       
      repeated int64 dims = 4;
      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 expected for this input by the backend. The input will
      @@     be reshaped to this before being presented to the backend. The
      @@     reshape must have the same number of elements as the input shape
      @@     specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
      Returns:
      Whether the reshape field is set.
    • getReshape

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape expected for this input by the backend. The input will
      @@     be reshaped to this before being presented to the backend. The
      @@     reshape must have the same number of elements as the input shape
      @@     specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
      Returns:
      The reshape.
    • getReshapeOrBuilder

      @@  .. cpp:var:: ModelTensorReshape reshape
      @@
      @@     The shape expected for this input by the backend. The input will
      @@     be reshaped to this before being presented to the backend. The
      @@     reshape must have the same number of elements as the input shape
      @@     specified by 'dims'. Optional.
      @@
       
      .inference.ModelTensorReshape reshape = 5;
    • getIsShapeTensor

      boolean getIsShapeTensor()
      @@  .. cpp:var:: bool is_shape_tensor
      @@
      @@     Whether or not the input 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.
    • getAllowRaggedBatch

      boolean getAllowRaggedBatch()
      @@  .. cpp:var:: bool allow_ragged_batch
      @@
      @@     Whether or not the input is allowed to be "ragged" in a dynamically
      @@     created batch. Default is false indicating that two requests will
      @@     only be batched if this tensor has the same shape in both requests.
      @@     True indicates that two requests can be batched even if this tensor
      @@     has a different shape in each request.
      @@
       
      bool allow_ragged_batch = 7;
      Returns:
      The allowRaggedBatch.
    • getOptional

      boolean getOptional()
      @@  .. cpp:var:: bool optional
      @@
      @@     Whether or not the input is optional for the model execution.
      @@     If true, the input is not required in the inference request.
      @@     Default value is false.
      @@
       
      bool optional = 8;
      Returns:
      The optional.
    • getIsNonLinearFormatIo

      boolean getIsNonLinearFormatIo()
      @@  .. cpp:var:: bool is_non_linear_format_io
      @@
      @@     Indicates whether the input 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 = 9;
      Returns:
      The isNonLinearFormatIo.