Package inference

Enum Class ModelConfigOuterClass.BatchInput.Kind

java.lang.Object
java.lang.Enum<ModelConfigOuterClass.BatchInput.Kind>
inference.ModelConfigOuterClass.BatchInput.Kind
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<ModelConfigOuterClass.BatchInput.Kind>, Constable
Enclosing class:
ModelConfigOuterClass.BatchInput

public static enum ModelConfigOuterClass.BatchInput.Kind extends Enum<ModelConfigOuterClass.BatchInput.Kind> implements com.google.protobuf.ProtocolMessageEnum
@@
@@    .. cpp:enum:: Kind
@@
@@       The kind of the batch input.
@@
 
Protobuf enum inference.BatchInput.Kind
  • Enum Constant Details

    • BATCH_ELEMENT_COUNT

      public static final ModelConfigOuterClass.BatchInput.Kind BATCH_ELEMENT_COUNT
      @@      .. cpp:enumerator:: Kind::BATCH_ELEMENT_COUNT = 0
      @@
      @@         The element count of the 'source_input' will be added as
      @@         input with shape [1].
      @@
       
      BATCH_ELEMENT_COUNT = 0;
    • BATCH_ACCUMULATED_ELEMENT_COUNT

      public static final ModelConfigOuterClass.BatchInput.Kind BATCH_ACCUMULATED_ELEMENT_COUNT
      @@      .. cpp:enumerator:: Kind::BATCH_ACCUMULATED_ELEMENT_COUNT = 1
      @@
      @@         The accumulated element count of the 'source_input' will be
      @@         added as input with shape [1]. For example, if there is a
      @@         batch of two request, each with 2 elements, an input of value
      @@         2 will be added to the first request, and an input of value
      @@         4 will be added to the second request.
      @@
       
      BATCH_ACCUMULATED_ELEMENT_COUNT = 1;
    • BATCH_ACCUMULATED_ELEMENT_COUNT_WITH_ZERO

      public static final ModelConfigOuterClass.BatchInput.Kind BATCH_ACCUMULATED_ELEMENT_COUNT_WITH_ZERO
      @@      .. cpp:enumerator::
      @@         Kind::BATCH_ACCUMULATED_ELEMENT_COUNT_WITH_ZERO = 2
      @@
      @@         The accumulated element count of the 'source_input' will be
      @@         added as input with shape [1], except for the first request
      @@         in the batch. For the first request in the batch, the input
      @@         will have shape [2] where the first element is value 0.
      @@
       
      BATCH_ACCUMULATED_ELEMENT_COUNT_WITH_ZERO = 2;
    • BATCH_MAX_ELEMENT_COUNT_AS_SHAPE

      public static final ModelConfigOuterClass.BatchInput.Kind BATCH_MAX_ELEMENT_COUNT_AS_SHAPE
      @@      .. cpp:enumerator:: Kind::BATCH_MAX_ELEMENT_COUNT_AS_SHAPE = 3
      @@
      @@         Among the requests in the batch, the max element count of the
      @@         'source_input' will be added as input with shape
      @@         [max_element_count] for the first request in the batch.
      @@         For other requests, such input will be with shape [0].
      @@         The data of the tensor will be uninitialized.
      @@
       
      BATCH_MAX_ELEMENT_COUNT_AS_SHAPE = 3;
    • BATCH_ITEM_SHAPE

      public static final ModelConfigOuterClass.BatchInput.Kind BATCH_ITEM_SHAPE
      @@      .. cpp:enumerator:: Kind::BATCH_ITEM_SHAPE = 4
      @@
      @@         Among the requests in the batch, the shape of the
      @@         'source_input' will be added as input with shape
      @@         [batch_size, len(input_dim)]. For example, if one
      @@         batch-2 input with shape [3, 1] and batch-1 input
      @@         with shape [2, 2] are batched, the batch input will
      @@         have shape [3, 2] and value [ [3, 1], [3, 1], [2, 2]].
      @@
       
      BATCH_ITEM_SHAPE = 4;
    • BATCH_ITEM_SHAPE_FLATTEN

      public static final ModelConfigOuterClass.BatchInput.Kind BATCH_ITEM_SHAPE_FLATTEN
      @@      .. cpp:enumerator:: Kind::BATCH_ITEM_SHAPE_FLATTEN = 5
      @@
      @@         Among the requests in the batch, the shape of the
      @@         'source_input' will be added as input with single dimensional
      @@         shape [batch_size * len(input_dim)]. For example, if one
      @@         batch-2 input with shape [3, 1] and batch-1 input
      @@         with shape [2, 2] are batched, the batch input will
      @@         have shape [6] and value [3, 1, 3, 1, 2, 2].
      @@
       
      BATCH_ITEM_SHAPE_FLATTEN = 5;
    • UNRECOGNIZED

      public static final ModelConfigOuterClass.BatchInput.Kind UNRECOGNIZED
  • Field Details

    • BATCH_ELEMENT_COUNT_VALUE

      public static final int BATCH_ELEMENT_COUNT_VALUE
      @@      .. cpp:enumerator:: Kind::BATCH_ELEMENT_COUNT = 0
      @@
      @@         The element count of the 'source_input' will be added as
      @@         input with shape [1].
      @@
       
      BATCH_ELEMENT_COUNT = 0;
      See Also:
    • BATCH_ACCUMULATED_ELEMENT_COUNT_VALUE

      public static final int BATCH_ACCUMULATED_ELEMENT_COUNT_VALUE
      @@      .. cpp:enumerator:: Kind::BATCH_ACCUMULATED_ELEMENT_COUNT = 1
      @@
      @@         The accumulated element count of the 'source_input' will be
      @@         added as input with shape [1]. For example, if there is a
      @@         batch of two request, each with 2 elements, an input of value
      @@         2 will be added to the first request, and an input of value
      @@         4 will be added to the second request.
      @@
       
      BATCH_ACCUMULATED_ELEMENT_COUNT = 1;
      See Also:
    • BATCH_ACCUMULATED_ELEMENT_COUNT_WITH_ZERO_VALUE

      public static final int BATCH_ACCUMULATED_ELEMENT_COUNT_WITH_ZERO_VALUE
      @@      .. cpp:enumerator::
      @@         Kind::BATCH_ACCUMULATED_ELEMENT_COUNT_WITH_ZERO = 2
      @@
      @@         The accumulated element count of the 'source_input' will be
      @@         added as input with shape [1], except for the first request
      @@         in the batch. For the first request in the batch, the input
      @@         will have shape [2] where the first element is value 0.
      @@
       
      BATCH_ACCUMULATED_ELEMENT_COUNT_WITH_ZERO = 2;
      See Also:
    • BATCH_MAX_ELEMENT_COUNT_AS_SHAPE_VALUE

      public static final int BATCH_MAX_ELEMENT_COUNT_AS_SHAPE_VALUE
      @@      .. cpp:enumerator:: Kind::BATCH_MAX_ELEMENT_COUNT_AS_SHAPE = 3
      @@
      @@         Among the requests in the batch, the max element count of the
      @@         'source_input' will be added as input with shape
      @@         [max_element_count] for the first request in the batch.
      @@         For other requests, such input will be with shape [0].
      @@         The data of the tensor will be uninitialized.
      @@
       
      BATCH_MAX_ELEMENT_COUNT_AS_SHAPE = 3;
      See Also:
    • BATCH_ITEM_SHAPE_VALUE

      public static final int BATCH_ITEM_SHAPE_VALUE
      @@      .. cpp:enumerator:: Kind::BATCH_ITEM_SHAPE = 4
      @@
      @@         Among the requests in the batch, the shape of the
      @@         'source_input' will be added as input with shape
      @@         [batch_size, len(input_dim)]. For example, if one
      @@         batch-2 input with shape [3, 1] and batch-1 input
      @@         with shape [2, 2] are batched, the batch input will
      @@         have shape [3, 2] and value [ [3, 1], [3, 1], [2, 2]].
      @@
       
      BATCH_ITEM_SHAPE = 4;
      See Also:
    • BATCH_ITEM_SHAPE_FLATTEN_VALUE

      public static final int BATCH_ITEM_SHAPE_FLATTEN_VALUE
      @@      .. cpp:enumerator:: Kind::BATCH_ITEM_SHAPE_FLATTEN = 5
      @@
      @@         Among the requests in the batch, the shape of the
      @@         'source_input' will be added as input with single dimensional
      @@         shape [batch_size * len(input_dim)]. For example, if one
      @@         batch-2 input with shape [3, 1] and batch-1 input
      @@         with shape [2, 2] are batched, the batch input will
      @@         have shape [6] and value [3, 1, 3, 1, 2, 2].
      @@
       
      BATCH_ITEM_SHAPE_FLATTEN = 5;
      See Also:
  • Method Details

    • values

      public static ModelConfigOuterClass.BatchInput.Kind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ModelConfigOuterClass.BatchInput.Kind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static ModelConfigOuterClass.BatchInput.Kind valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static ModelConfigOuterClass.BatchInput.Kind forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<ModelConfigOuterClass.BatchInput.Kind> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static ModelConfigOuterClass.BatchInput.Kind valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null