Struct aws_sdk_sagemaker::model::TargetPlatform
source · [−]#[non_exhaustive]pub struct TargetPlatform {
pub os: Option<TargetPlatformOs>,
pub arch: Option<TargetPlatformArch>,
pub accelerator: Option<TargetPlatformAccelerator>,
}
Expand description
Contains information about a target platform that you want your model to run on, such as OS, architecture, and accelerators. It is an alternative of TargetDevice
.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.os: Option<TargetPlatformOs>
Specifies a target platform OS.
-
LINUX
: Linux-based operating systems. -
ANDROID
: Android operating systems. Android API level can be specified using theANDROID_PLATFORM
compiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
arch: Option<TargetPlatformArch>
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.
accelerator: Option<TargetPlatformAccelerator>
Specifies a target platform accelerator (optional).
-
NVIDIA
: Nvidia graphics processing unit. It also requiresgpu-code
,trt-ver
,cuda-ver
compiler options -
MALI
: ARM Mali graphics processor -
INTEL_GRAPHICS
: Integrated Intel graphics
Implementations
sourceimpl TargetPlatform
impl TargetPlatform
sourcepub fn os(&self) -> Option<&TargetPlatformOs>
pub fn os(&self) -> Option<&TargetPlatformOs>
Specifies a target platform OS.
-
LINUX
: Linux-based operating systems. -
ANDROID
: Android operating systems. Android API level can be specified using theANDROID_PLATFORM
compiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
sourcepub fn arch(&self) -> Option<&TargetPlatformArch>
pub fn arch(&self) -> Option<&TargetPlatformArch>
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) -> Option<&TargetPlatformAccelerator>
pub fn accelerator(&self) -> Option<&TargetPlatformAccelerator>
Specifies a target platform accelerator (optional).
-
NVIDIA
: Nvidia graphics processing unit. It also requiresgpu-code
,trt-ver
,cuda-ver
compiler options -
MALI
: ARM Mali graphics processor -
INTEL_GRAPHICS
: Integrated Intel graphics
sourceimpl TargetPlatform
impl TargetPlatform
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TargetPlatform
Trait Implementations
sourceimpl Clone for TargetPlatform
impl Clone for TargetPlatform
sourcefn clone(&self) -> TargetPlatform
fn clone(&self) -> TargetPlatform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TargetPlatform
impl Debug for TargetPlatform
sourceimpl PartialEq<TargetPlatform> for TargetPlatform
impl PartialEq<TargetPlatform> for TargetPlatform
sourcefn eq(&self, other: &TargetPlatform) -> bool
fn eq(&self, other: &TargetPlatform) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TargetPlatform) -> bool
fn ne(&self, other: &TargetPlatform) -> bool
This method tests for !=
.
impl StructuralPartialEq for TargetPlatform
Auto Trait Implementations
impl RefUnwindSafe for TargetPlatform
impl Send for TargetPlatform
impl Sync for TargetPlatform
impl Unpin for TargetPlatform
impl UnwindSafe for TargetPlatform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more