Class TargetPlatform
- java.lang.Object
-
- software.amazon.awssdk.services.lookoutvision.model.TargetPlatform
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetPlatform.Builder,TargetPlatform>
@Generated("software.amazon.awssdk:codegen") public final class TargetPlatform extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetPlatform.Builder,TargetPlatform>
The platform on which a model runs on an AWS IoT Greengrass core device.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetPlatform.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetPlatformAcceleratoraccelerator()The target accelerator for the model.StringacceleratorAsString()The target accelerator for the model.TargetPlatformArcharch()The target architecture for the model.StringarchAsString()The target architecture for the model.static TargetPlatform.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()TargetPlatformOsos()The target operating system for the model.StringosAsString()The target operating system for the model.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TargetPlatform.Builder>serializableBuilderClass()TargetPlatform.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
os
public final TargetPlatformOs os()
The target operating system for the model. Linux is the only operating system that is currently supported.
If the service returns an enum value that is not available in the current SDK version,
oswill returnTargetPlatformOs.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromosAsString().- Returns:
- The target operating system for the model. Linux is the only operating system that is currently supported.
- See Also:
TargetPlatformOs
-
osAsString
public final String osAsString()
The target operating system for the model. Linux is the only operating system that is currently supported.
If the service returns an enum value that is not available in the current SDK version,
oswill returnTargetPlatformOs.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromosAsString().- Returns:
- The target operating system for the model. Linux is the only operating system that is currently supported.
- See Also:
TargetPlatformOs
-
arch
public final 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).
If the service returns an enum value that is not available in the current SDK version,
archwill returnTargetPlatformArch.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromarchAsString().- Returns:
- 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).
- See Also:
TargetPlatformArch
-
archAsString
public final String archAsString()
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).
If the service returns an enum value that is not available in the current SDK version,
archwill returnTargetPlatformArch.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromarchAsString().- Returns:
- 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).
- See Also:
TargetPlatformArch
-
accelerator
public final 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, andcuda-vercompiler 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']}
If the service returns an enum value that is not available in the current SDK version,
acceleratorwill returnTargetPlatformAccelerator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromacceleratorAsString().- Returns:
- 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, andcuda-vercompiler 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']}
-
- See Also:
TargetPlatformAccelerator
-
-
acceleratorAsString
public final String acceleratorAsString()
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, andcuda-vercompiler 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']}
If the service returns an enum value that is not available in the current SDK version,
acceleratorwill returnTargetPlatformAccelerator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromacceleratorAsString().- Returns:
- 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, andcuda-vercompiler 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']}
-
- See Also:
TargetPlatformAccelerator
-
-
toBuilder
public TargetPlatform.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetPlatform.Builder,TargetPlatform>
-
builder
public static TargetPlatform.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetPlatform.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-