
com.pulumi.awsnative.sagemaker.kotlin.outputs.InferenceComponentComputeResourceRequirements.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.sagemaker.kotlin.outputs
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
/**
*
* @property maxMemoryRequiredInMb The maximum MB of memory to allocate to run a model that you assign to an inference component.
* @property minMemoryRequiredInMb The minimum MB of memory to allocate to run a model that you assign to an inference component.
* @property numberOfAcceleratorDevicesRequired The number of accelerators to allocate to run a model that you assign to an inference component. Accelerators include GPUs and AWS Inferentia.
* @property numberOfCpuCoresRequired The number of CPU cores to allocate to run a model that you assign to an inference component.
*/
public data class InferenceComponentComputeResourceRequirements(
public val maxMemoryRequiredInMb: Int? = null,
public val minMemoryRequiredInMb: Int? = null,
public val numberOfAcceleratorDevicesRequired: Double? = null,
public val numberOfCpuCoresRequired: Double? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.sagemaker.outputs.InferenceComponentComputeResourceRequirements): InferenceComponentComputeResourceRequirements =
InferenceComponentComputeResourceRequirements(
maxMemoryRequiredInMb = javaType.maxMemoryRequiredInMb().map({ args0 -> args0 }).orElse(null),
minMemoryRequiredInMb = javaType.minMemoryRequiredInMb().map({ args0 -> args0 }).orElse(null),
numberOfAcceleratorDevicesRequired = javaType.numberOfAcceleratorDevicesRequired().map({ args0 ->
args0
}).orElse(null),
numberOfCpuCoresRequired = javaType.numberOfCpuCoresRequired().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy