Struct aws_sdk_sagemaker::model::target_platform::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for TargetPlatform.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn os(self, input: TargetPlatformOs) -> Self
pub fn os(self, input: TargetPlatformOs) -> Self
Specifies a target platform OS.
-
LINUX: Linux-based operating systems. -
ANDROID: Android operating systems. Android API level can be specified using theANDROID_PLATFORMcompiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
sourcepub fn set_os(self, input: Option<TargetPlatformOs>) -> Self
pub fn set_os(self, input: Option<TargetPlatformOs>) -> Self
Specifies a target platform OS.
-
LINUX: Linux-based operating systems. -
ANDROID: Android operating systems. Android API level can be specified using theANDROID_PLATFORMcompiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
sourcepub fn arch(self, input: TargetPlatformArch) -> Self
pub fn arch(self, input: TargetPlatformArch) -> Self
Specifies a target platform architecture.
-
X86_64: 64-bit version of the x86 instruction set. -
X86: 32-bit version of the x86 instruction set. -
ARM64: ARMv8 64-bit CPU. -
ARM_EABIHF: ARMv7 32-bit, Hard Float. -
ARM_EABI: ARMv7 32-bit, Soft Float. Used by Android 32-bit ARM platform.
sourcepub fn set_arch(self, input: Option<TargetPlatformArch>) -> Self
pub fn set_arch(self, input: Option<TargetPlatformArch>) -> Self
Specifies a target platform architecture.
-
X86_64: 64-bit version of the x86 instruction set. -
X86: 32-bit version of the x86 instruction set. -
ARM64: ARMv8 64-bit CPU. -
ARM_EABIHF: ARMv7 32-bit, Hard Float. -
ARM_EABI: ARMv7 32-bit, Soft Float. Used by Android 32-bit ARM platform.
sourcepub fn accelerator(self, input: TargetPlatformAccelerator) -> Self
pub fn accelerator(self, input: TargetPlatformAccelerator) -> Self
Specifies a target platform accelerator (optional).
-
NVIDIA: Nvidia graphics processing unit. It also requiresgpu-code,trt-ver,cuda-vercompiler options -
MALI: ARM Mali graphics processor -
INTEL_GRAPHICS: Integrated Intel graphics
sourcepub fn set_accelerator(self, input: Option<TargetPlatformAccelerator>) -> Self
pub fn set_accelerator(self, input: Option<TargetPlatformAccelerator>) -> Self
Specifies a target platform accelerator (optional).
-
NVIDIA: Nvidia graphics processing unit. It also requiresgpu-code,trt-ver,cuda-vercompiler options -
MALI: ARM Mali graphics processor -
INTEL_GRAPHICS: Integrated Intel graphics
sourcepub fn build(self) -> TargetPlatform
pub fn build(self) -> TargetPlatform
Consumes the builder and constructs a TargetPlatform.