Struct aws_sdk_lookoutvision::types::TargetPlatform
source · #[non_exhaustive]pub struct TargetPlatform {
pub os: Option<TargetPlatformOs>,
pub arch: Option<TargetPlatformArch>,
pub accelerator: Option<TargetPlatformAccelerator>,
}Expand description
The platform on which a model runs on an AWS IoT Greengrass core device.
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>The target operating system for the model. Linux is the only operating system that is currently supported.
arch: Option<TargetPlatformArch>The target architecture for the model. The currently supported architectures are X86_64 (64-bit version of the x86 instruction set) and ARM_64 (ARMv8 64-bit CPU).
accelerator: Option<TargetPlatformAccelerator>The target accelerator for the model. Currently, Amazon Lookout for Vision only supports NVIDIA (Nvidia graphics processing unit) and CPU accelerators. If you specify NVIDIA as an accelerator, you must also specify the gpu-code, trt-ver, and cuda-ver compiler options. If you don't specify an accelerator, Lookout for Vision uses the CPU for compilation and we highly recommend that you use the GreengrassConfiguration$CompilerOptions field. For example, you can use the following compiler options for CPU:
-
mcpu: CPU micro-architecture. For example,{'mcpu': 'skylake-avx512'} -
mattr: CPU flags. For example,{'mattr': \['+neon', '+vfpv4'\]}
Implementations§
source§impl TargetPlatform
impl TargetPlatform
sourcepub fn os(&self) -> Option<&TargetPlatformOs>
pub fn os(&self) -> Option<&TargetPlatformOs>
The target operating system for the model. Linux is the only operating system that is currently supported.
sourcepub fn arch(&self) -> Option<&TargetPlatformArch>
pub fn arch(&self) -> Option<&TargetPlatformArch>
The target architecture for the model. The currently supported architectures are X86_64 (64-bit version of the x86 instruction set) and ARM_64 (ARMv8 64-bit CPU).
sourcepub fn accelerator(&self) -> Option<&TargetPlatformAccelerator>
pub fn accelerator(&self) -> Option<&TargetPlatformAccelerator>
The target accelerator for the model. Currently, Amazon Lookout for Vision only supports NVIDIA (Nvidia graphics processing unit) and CPU accelerators. If you specify NVIDIA as an accelerator, you must also specify the gpu-code, trt-ver, and cuda-ver compiler options. If you don't specify an accelerator, Lookout for Vision uses the CPU for compilation and we highly recommend that you use the GreengrassConfiguration$CompilerOptions field. For example, you can use the following compiler options for CPU:
-
mcpu: CPU micro-architecture. For example,{'mcpu': 'skylake-avx512'} -
mattr: CPU flags. For example,{'mattr': \['+neon', '+vfpv4'\]}
source§impl TargetPlatform
impl TargetPlatform
sourcepub fn builder() -> TargetPlatformBuilder
pub fn builder() -> TargetPlatformBuilder
Creates a new builder-style object to manufacture TargetPlatform.
Trait Implementations§
source§impl Clone for TargetPlatform
impl Clone for TargetPlatform
source§fn clone(&self) -> TargetPlatform
fn clone(&self) -> TargetPlatform
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TargetPlatform
impl Debug for TargetPlatform
source§impl PartialEq for TargetPlatform
impl PartialEq for TargetPlatform
impl StructuralPartialEq for TargetPlatform
Auto Trait Implementations§
impl Freeze for TargetPlatform
impl RefUnwindSafe for TargetPlatform
impl Send for TargetPlatform
impl Sync for TargetPlatform
impl Unpin for TargetPlatform
impl UnwindSafe for TargetPlatform
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more