Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data TargetPlatform = TargetPlatform' {}
- newTargetPlatform :: TargetPlatformOs -> TargetPlatformArch -> TargetPlatform
- targetPlatform_accelerator :: Lens' TargetPlatform (Maybe TargetPlatformAccelerator)
- targetPlatform_os :: Lens' TargetPlatform TargetPlatformOs
- targetPlatform_arch :: Lens' TargetPlatform TargetPlatformArch
Documentation
data TargetPlatform Source #
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: newTargetPlatform
smart constructor.
TargetPlatform' | |
|
Instances
Create a value of TargetPlatform
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accelerator:TargetPlatform'
, targetPlatform_accelerator
- Specifies a target platform accelerator (optional).
NVIDIA
: Nvidia graphics processing unit. It also requiresgpu-code
,trt-ver
,cuda-ver
compiler optionsMALI
: ARM Mali graphics processorINTEL_GRAPHICS
: Integrated Intel graphics
$sel:os:TargetPlatform'
, targetPlatform_os
- Specifies a target platform OS.
LINUX
: Linux-based operating systems.ANDROID
: Android operating systems. Android API level can be specified using theANDROID_PLATFORM
compiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
$sel:arch:TargetPlatform'
, targetPlatform_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.
targetPlatform_accelerator :: Lens' TargetPlatform (Maybe TargetPlatformAccelerator) Source #
Specifies a target platform accelerator (optional).
NVIDIA
: Nvidia graphics processing unit. It also requiresgpu-code
,trt-ver
,cuda-ver
compiler optionsMALI
: ARM Mali graphics processorINTEL_GRAPHICS
: Integrated Intel graphics
targetPlatform_os :: Lens' TargetPlatform TargetPlatformOs Source #
Specifies a target platform OS.
LINUX
: Linux-based operating systems.ANDROID
: Android operating systems. Android API level can be specified using theANDROID_PLATFORM
compiler option. For example,"CompilerOptions": {'ANDROID_PLATFORM': 28}
targetPlatform_arch :: Lens' TargetPlatform TargetPlatformArch Source #
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.