Class OptimizationConfig

    • Method Detail

      • modelQuantizationConfig

        public final ModelQuantizationConfig modelQuantizationConfig()

        Settings for the model quantization technique that's applied by a model optimization job.

        Returns:
        Settings for the model quantization technique that's applied by a model optimization job.
      • modelCompilationConfig

        public final ModelCompilationConfig modelCompilationConfig()

        Settings for the model compilation technique that's applied by a model optimization job.

        Returns:
        Settings for the model compilation technique that's applied by a model optimization job.
      • modelShardingConfig

        public final ModelShardingConfig modelShardingConfig()

        Settings for the model sharding technique that's applied by a model optimization job.

        Returns:
        Settings for the model sharding technique that's applied by a model optimization job.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromModelQuantizationConfig

        public static OptimizationConfig fromModelQuantizationConfig​(ModelQuantizationConfig modelQuantizationConfig)
        Create an instance of this class with modelQuantizationConfig() initialized to the given value.

        Settings for the model quantization technique that's applied by a model optimization job.

        Parameters:
        modelQuantizationConfig - Settings for the model quantization technique that's applied by a model optimization job.
      • fromModelQuantizationConfig

        public static OptimizationConfig fromModelQuantizationConfig​(Consumer<ModelQuantizationConfig.Builder> modelQuantizationConfig)
        Create an instance of this class with modelQuantizationConfig() initialized to the given value.

        Settings for the model quantization technique that's applied by a model optimization job.

        Parameters:
        modelQuantizationConfig - Settings for the model quantization technique that's applied by a model optimization job.
      • fromModelCompilationConfig

        public static OptimizationConfig fromModelCompilationConfig​(ModelCompilationConfig modelCompilationConfig)
        Create an instance of this class with modelCompilationConfig() initialized to the given value.

        Settings for the model compilation technique that's applied by a model optimization job.

        Parameters:
        modelCompilationConfig - Settings for the model compilation technique that's applied by a model optimization job.
      • fromModelCompilationConfig

        public static OptimizationConfig fromModelCompilationConfig​(Consumer<ModelCompilationConfig.Builder> modelCompilationConfig)
        Create an instance of this class with modelCompilationConfig() initialized to the given value.

        Settings for the model compilation technique that's applied by a model optimization job.

        Parameters:
        modelCompilationConfig - Settings for the model compilation technique that's applied by a model optimization job.
      • fromModelShardingConfig

        public static OptimizationConfig fromModelShardingConfig​(ModelShardingConfig modelShardingConfig)
        Create an instance of this class with modelShardingConfig() initialized to the given value.

        Settings for the model sharding technique that's applied by a model optimization job.

        Parameters:
        modelShardingConfig - Settings for the model sharding technique that's applied by a model optimization job.
      • fromModelShardingConfig

        public static OptimizationConfig fromModelShardingConfig​(Consumer<ModelShardingConfig.Builder> modelShardingConfig)
        Create an instance of this class with modelShardingConfig() initialized to the given value.

        Settings for the model sharding technique that's applied by a model optimization job.

        Parameters:
        modelShardingConfig - Settings for the model sharding technique that's applied by a model optimization job.