/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SageMaker.Model
{
///
/// 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.
///
public partial class TargetPlatform
{
private TargetPlatformAccelerator _accelerator;
private TargetPlatformArch _arch;
private TargetPlatformOs _os;
///
/// Gets and sets the property Accelerator.
///
/// Specifies a target platform accelerator (optional).
///
/// -
///
///
NVIDIA: Nvidia graphics processing unit. It also requires gpu-code,
/// trt-ver, cuda-ver compiler options
///
/// -
///
///
MALI: ARM Mali graphics processor
///
/// -
///
///
INTEL_GRAPHICS: Integrated Intel graphics
///
///
///
public TargetPlatformAccelerator Accelerator
{
get { return this._accelerator; }
set { this._accelerator = value; }
}
// Check to see if Accelerator property is set
internal bool IsSetAccelerator()
{
return this._accelerator != null;
}
///
/// Gets and sets the property 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.
///
///
///
[AWSProperty(Required=true)]
public TargetPlatformArch Arch
{
get { return this._arch; }
set { this._arch = value; }
}
// Check to see if Arch property is set
internal bool IsSetArch()
{
return this._arch != null;
}
///
/// Gets and sets the property Os.
///
/// Specifies a target platform OS.
///
/// -
///
///
LINUX: Linux-based operating systems.
///
/// -
///
///
ANDROID: Android operating systems. Android API level can be specified
/// using the ANDROID_PLATFORM compiler option. For example, "CompilerOptions":
/// {'ANDROID_PLATFORM': 28}
///
///
///
[AWSProperty(Required=true)]
public TargetPlatformOs Os
{
get { return this._os; }
set { this._os = value; }
}
// Check to see if Os property is set
internal bool IsSetOs()
{
return this._os != null;
}
}
}