Package inference

Class ModelConfigOuterClass.ModelWarmup

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

public static final class ModelConfigOuterClass.ModelWarmup extends com.google.protobuf.GeneratedMessageV3 implements ModelConfigOuterClass.ModelWarmupOrBuilder
@@
@@.. cpp:var:: message ModelWarmup
@@
@@   Settings used to construct the request sample for model warmup.
@@
 
Protobuf type inference.ModelWarmup
See Also:
  • Field Details

  • 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()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
    • 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 request sample.
      @@
       
      string name = 1;
      Specified by:
      getName in interface ModelConfigOuterClass.ModelWarmupOrBuilder
      Returns:
      The name.
    • getNameBytes

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

      public int getBatchSize()
      @@  .. cpp:var:: uint32 batch_size
      @@
      @@     The batch size of the inference request. This must be >= 1. For
      @@     models that don't support batching, batch_size must be 1. If
      @@     batch_size > 1, the 'inputs' specified below will be duplicated to
      @@     match the batch size requested.
      @@
       
      uint32 batch_size = 2;
      Specified by:
      getBatchSize in interface ModelConfigOuterClass.ModelWarmupOrBuilder
      Returns:
      The batchSize.
    • getInputsCount

      public int getInputsCount()
      Description copied from interface: ModelConfigOuterClass.ModelWarmupOrBuilder
      @@  .. cpp:var:: map<string, Input> inputs
      @@
      @@     The warmup meta data associated with every model input, including
      @@     control tensors.
      @@
       
      map<string, .inference.ModelWarmup.Input> inputs = 3;
      Specified by:
      getInputsCount in interface ModelConfigOuterClass.ModelWarmupOrBuilder
    • containsInputs

      public boolean containsInputs(String key)
      @@  .. cpp:var:: map<string, Input> inputs
      @@
      @@     The warmup meta data associated with every model input, including
      @@     control tensors.
      @@
       
      map<string, .inference.ModelWarmup.Input> inputs = 3;
      Specified by:
      containsInputs in interface ModelConfigOuterClass.ModelWarmupOrBuilder
    • getInputs

      Deprecated.
      Use getInputsMap() instead.
      Specified by:
      getInputs in interface ModelConfigOuterClass.ModelWarmupOrBuilder
    • getInputsMap

      @@  .. cpp:var:: map<string, Input> inputs
      @@
      @@     The warmup meta data associated with every model input, including
      @@     control tensors.
      @@
       
      map<string, .inference.ModelWarmup.Input> inputs = 3;
      Specified by:
      getInputsMap in interface ModelConfigOuterClass.ModelWarmupOrBuilder
    • getInputsOrDefault

      @@  .. cpp:var:: map<string, Input> inputs
      @@
      @@     The warmup meta data associated with every model input, including
      @@     control tensors.
      @@
       
      map<string, .inference.ModelWarmup.Input> inputs = 3;
      Specified by:
      getInputsOrDefault in interface ModelConfigOuterClass.ModelWarmupOrBuilder
    • getInputsOrThrow

      public ModelConfigOuterClass.ModelWarmup.Input getInputsOrThrow(String key)
      @@  .. cpp:var:: map<string, Input> inputs
      @@
      @@     The warmup meta data associated with every model input, including
      @@     control tensors.
      @@
       
      map<string, .inference.ModelWarmup.Input> inputs = 3;
      Specified by:
      getInputsOrThrow in interface ModelConfigOuterClass.ModelWarmupOrBuilder
    • getCount

      public int getCount()
      @@  .. cpp:var:: uint32 count
      @@
      @@     The number of iterations that this warmup sample will be executed.
      @@     For example, if this field is set to 2, 2 model executions using this
      @@     sample will be scheduled for warmup. Default value is 0 which
      @@     indicates that this sample will be used only once.
      @@     Note that for sequence model, 'count' may not work well
      @@     because the model often expect a valid sequence of requests which
      @@     should be represented by a series of warmup samples. 'count > 1'
      @@     essentially "resends" one of the sample, which may invalidate the
      @@     sequence and result in unexpected warmup failure.
      @@
       
      uint32 count = 4;
      Specified by:
      getCount in interface ModelConfigOuterClass.ModelWarmupOrBuilder
      Returns:
      The count.
    • 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.ModelWarmup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static ModelConfigOuterClass.ModelWarmup 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.ModelWarmup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static ModelConfigOuterClass.ModelWarmup.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.ModelWarmup.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ModelConfigOuterClass.ModelWarmup getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ModelConfigOuterClass.ModelWarmup> 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.ModelWarmup getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder