@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetPlatform extends Object implements Serializable, Cloneable, StructuredPojo
The platform on which a model runs on an AWS IoT Greengrass core device.
Constructor and Description |
---|
TargetPlatform() |
Modifier and Type | Method and Description |
---|---|
TargetPlatform |
clone() |
boolean |
equals(Object obj) |
String |
getAccelerator()
The target accelerator for the model.
|
String |
getArch()
The target architecture for the model.
|
String |
getOs()
The target operating system for the model.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccelerator(String accelerator)
The target accelerator for the model.
|
void |
setArch(String arch)
The target architecture for the model.
|
void |
setOs(String os)
The target operating system for the model.
|
String |
toString()
Returns a string representation of this object.
|
TargetPlatform |
withAccelerator(String accelerator)
The target accelerator for the model.
|
TargetPlatform |
withAccelerator(TargetPlatformAccelerator accelerator)
The target accelerator for the model.
|
TargetPlatform |
withArch(String arch)
The target architecture for the model.
|
TargetPlatform |
withArch(TargetPlatformArch arch)
The target architecture for the model.
|
TargetPlatform |
withOs(String os)
The target operating system for the model.
|
TargetPlatform |
withOs(TargetPlatformOs os)
The target operating system for the model.
|
public void setOs(String os)
The target operating system for the model. Linux is the only operating system that is currently supported.
os
- The target operating system for the model. Linux is the only operating system that is currently supported.TargetPlatformOs
public String getOs()
The target operating system for the model. Linux is the only operating system that is currently supported.
TargetPlatformOs
public TargetPlatform withOs(String os)
The target operating system for the model. Linux is the only operating system that is currently supported.
os
- The target operating system for the model. Linux is the only operating system that is currently supported.TargetPlatformOs
public TargetPlatform withOs(TargetPlatformOs os)
The target operating system for the model. Linux is the only operating system that is currently supported.
os
- The target operating system for the model. Linux is the only operating system that is currently supported.TargetPlatformOs
public void setArch(String arch)
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).
arch
- 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).TargetPlatformArch
public String getArch()
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).
TargetPlatformArch
public TargetPlatform withArch(String arch)
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).
arch
- 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).TargetPlatformArch
public TargetPlatform withArch(TargetPlatformArch arch)
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).
arch
- 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).TargetPlatformArch
public void setAccelerator(String accelerator)
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']}
accelerator
- 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']}
TargetPlatformAccelerator
public String getAccelerator()
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']}
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']}
TargetPlatformAccelerator
public TargetPlatform withAccelerator(String accelerator)
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']}
accelerator
- 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']}
TargetPlatformAccelerator
public TargetPlatform withAccelerator(TargetPlatformAccelerator accelerator)
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']}
accelerator
- 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']}
TargetPlatformAccelerator
public String toString()
toString
in class Object
Object.toString()
public TargetPlatform clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.