Struct aws_sdk_lookoutvision::model::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. NVIDIA (Nvidia graphics processing unit) is the only accelerator that is currently supported. You must also specify the gpu-code, trt-ver, and cuda-ver compiler options.
Implementations
sourceimpl 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. NVIDIA (Nvidia graphics processing unit) is the only accelerator that is currently supported. You must also specify the gpu-code, trt-ver, and cuda-ver compiler options.
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 · sourcefn borrow_mut(&mut self) -> &mut T
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> 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