Class TargetPlatform
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetPlatform.Builder,TargetPlatform>
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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionSpecifies a target platform accelerator (optional).final StringSpecifies a target platform accelerator (optional).final TargetPlatformArcharch()Specifies a target platform architecture.final StringSpecifies a target platform architecture.static TargetPlatform.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final TargetPlatformOsos()Specifies a target platform OS.final StringSpecifies a target platform OS.static Class<? extends TargetPlatform.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
os
Specifies a target platform OS.
-
LINUX: Linux-based operating systems. -
ANDROID: Android operating systems. Android API level can be specified using theANDROID_PLATFORMcompiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
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:
- Specifies a target platform OS.
-
LINUX: Linux-based operating systems. -
ANDROID: Android operating systems. Android API level can be specified using theANDROID_PLATFORMcompiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
-
- See Also:
-
-
osAsString
Specifies a target platform OS.
-
LINUX: Linux-based operating systems. -
ANDROID: Android operating systems. Android API level can be specified using theANDROID_PLATFORMcompiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
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:
- Specifies a target platform OS.
-
LINUX: Linux-based operating systems. -
ANDROID: Android operating systems. Android API level can be specified using theANDROID_PLATFORMcompiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
-
- See Also:
-
-
arch
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.
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:
- 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.
-
- See Also:
-
-
archAsString
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.
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:
- 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.
-
- See Also:
-
-
accelerator
Specifies a target platform accelerator (optional).
-
NVIDIA: Nvidia graphics processing unit. It also requiresgpu-code,trt-ver,cuda-vercompiler options -
MALI: ARM Mali graphics processor -
INTEL_GRAPHICS: Integrated Intel graphics
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:
- Specifies a target platform accelerator (optional).
-
NVIDIA: Nvidia graphics processing unit. It also requiresgpu-code,trt-ver,cuda-vercompiler options -
MALI: ARM Mali graphics processor -
INTEL_GRAPHICS: Integrated Intel graphics
-
- See Also:
-
-
acceleratorAsString
Specifies a target platform accelerator (optional).
-
NVIDIA: Nvidia graphics processing unit. It also requiresgpu-code,trt-ver,cuda-vercompiler options -
MALI: ARM Mali graphics processor -
INTEL_GRAPHICS: Integrated Intel graphics
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:
- Specifies a target platform accelerator (optional).
-
NVIDIA: Nvidia graphics processing unit. It also requiresgpu-code,trt-ver,cuda-vercompiler options -
MALI: ARM Mali graphics processor -
INTEL_GRAPHICS: Integrated Intel graphics
-
- See Also:
-
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetPlatform.Builder,TargetPlatform> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-