Package inference

Enum Class ModelConfigOuterClass.ModelInstanceGroup.Kind

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

public static enum ModelConfigOuterClass.ModelInstanceGroup.Kind extends Enum<ModelConfigOuterClass.ModelInstanceGroup.Kind> implements com.google.protobuf.ProtocolMessageEnum
@@
@@  .. cpp:enum:: Kind
@@
@@     Kind of this instance group.
@@
 
Protobuf enum inference.ModelInstanceGroup.Kind
  • Enum Constant Details

    • KIND_AUTO

      public static final ModelConfigOuterClass.ModelInstanceGroup.Kind KIND_AUTO
      @@    .. cpp:enumerator:: Kind::KIND_AUTO = 0
      @@
      @@       This instance group represents instances that can run on either
      @@       CPU or GPU. If all GPUs listed in 'gpus' are available then
      @@       instances will be created on GPU(s), otherwise instances will
      @@       be created on CPU.
      @@
       
      KIND_AUTO = 0;
    • KIND_GPU

      public static final ModelConfigOuterClass.ModelInstanceGroup.Kind KIND_GPU
      @@    .. cpp:enumerator:: Kind::KIND_GPU = 1
      @@
      @@       This instance group represents instances that must run on the
      @@       GPU.
      @@
       
      KIND_GPU = 1;
    • KIND_CPU

      public static final ModelConfigOuterClass.ModelInstanceGroup.Kind KIND_CPU
      @@    .. cpp:enumerator:: Kind::KIND_CPU = 2
      @@
      @@       This instance group represents instances that must run on the
      @@       CPU.
      @@
       
      KIND_CPU = 2;
    • KIND_MODEL

      public static final ModelConfigOuterClass.ModelInstanceGroup.Kind KIND_MODEL
      @@    .. cpp:enumerator:: Kind::KIND_MODEL = 3
      @@
      @@       This instance group represents instances that should run on the
      @@       CPU and/or GPU(s) as specified by the model or backend itself.
      @@       The inference server will not override the model/backend
      @@       settings.
      @@
       
      KIND_MODEL = 3;
    • UNRECOGNIZED

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

    • KIND_AUTO_VALUE

      public static final int KIND_AUTO_VALUE
      @@    .. cpp:enumerator:: Kind::KIND_AUTO = 0
      @@
      @@       This instance group represents instances that can run on either
      @@       CPU or GPU. If all GPUs listed in 'gpus' are available then
      @@       instances will be created on GPU(s), otherwise instances will
      @@       be created on CPU.
      @@
       
      KIND_AUTO = 0;
      See Also:
    • KIND_GPU_VALUE

      public static final int KIND_GPU_VALUE
      @@    .. cpp:enumerator:: Kind::KIND_GPU = 1
      @@
      @@       This instance group represents instances that must run on the
      @@       GPU.
      @@
       
      KIND_GPU = 1;
      See Also:
    • KIND_CPU_VALUE

      public static final int KIND_CPU_VALUE
      @@    .. cpp:enumerator:: Kind::KIND_CPU = 2
      @@
      @@       This instance group represents instances that must run on the
      @@       CPU.
      @@
       
      KIND_CPU = 2;
      See Also:
    • KIND_MODEL_VALUE

      public static final int KIND_MODEL_VALUE
      @@    .. cpp:enumerator:: Kind::KIND_MODEL = 3
      @@
      @@       This instance group represents instances that should run on the
      @@       CPU and/or GPU(s) as specified by the model or backend itself.
      @@       The inference server will not override the model/backend
      @@       settings.
      @@
       
      KIND_MODEL = 3;
      See Also:
  • Method Details

    • 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

      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.
      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.ModelInstanceGroup.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.ModelInstanceGroup.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.ModelInstanceGroup.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