eVision Python API
Loading...
Searching...
No Matches
eVision.EasyDeepLearning.EDeepLearningDevice Class Reference

Class representing a device that can run a neural network. More...

Public Member Functions

None __init__ (self)
 Default constructor.
None __init__ (self, eVision.EasyDeepLearning.EDeepLearningDevice other)
 Copy constructor.
bool HasTrainingCapability (self)
 Whether the device can perform training or not.
bool HasInferenceCapability (self)
 Whether the device can perform inference or not.
bool IsPrecisionSupported (self, eVision.EasyDeepLearning.EDeepLearningInferencePrecision precision)
 Whether the given precision is supported by the device or not.
bool IsValid (self)
 Whether this instance represents a usable device or not.
str Name (self)
 Name of the device.
str FullName (self)
 A full name of the device.
str EngineName (self)
 The name of the engine supporting this device.
eVision.EasyDeepLearning.EDeepLearningDeviceType DeviceType (self)
 The device type.
str DeviceTypeDescription (self)
 Textual description of the device type.
int DeviceId (self)
 A device index corresponding to the index of the device within the engine.
list[eVision._eVision.EasyDeepLearning.EDeepLearningInferencePrecision] SupportedPrecisions (self)
 Precisions supported by the device.
eVision.EasyDeepLearning.EDeepLearningInferencePrecision DefaultPrecision (self)
 Default precision for this device.

Detailed Description

Class representing a device that can run a neural network.

A device is fully described by its eVision.EasyDeepLearning.EDeepLearningDevice.Name and eVision.EasyDeepLearning.EDeepLearningDevice.EngineName.

The other properties are information about the device and its capabilities.

Remarks:

License(s): BasicTypes

Constructor & Destructor Documentation

◆ __init__() [1/2]

None eVision.EasyDeepLearning.EDeepLearningDevice.__init__ ( self)

Default constructor.

The resulting device will be invalid.

◆ __init__() [2/2]

None eVision.EasyDeepLearning.EDeepLearningDevice.__init__ ( self,
eVision.EasyDeepLearning.EDeepLearningDevice other )

Copy constructor.

Parameters
otherDevice to copy

Member Function Documentation

◆ DefaultPrecision()

eVision.EasyDeepLearning.EDeepLearningInferencePrecision eVision.EasyDeepLearning.EDeepLearningDevice.DefaultPrecision ( self)

Default precision for this device.

If supported by the device, the default precision will be FLOAT32.

◆ DeviceId()

int eVision.EasyDeepLearning.EDeepLearningDevice.DeviceId ( self)

A device index corresponding to the index of the device within the engine.

With the default engine, the device index is the index of the NVIDIA GPU for example.

◆ DeviceType()

eVision.EasyDeepLearning.EDeepLearningDeviceType eVision.EasyDeepLearning.EDeepLearningDevice.DeviceType ( self)

The device type.

◆ DeviceTypeDescription()

str eVision.EasyDeepLearning.EDeepLearningDevice.DeviceTypeDescription ( self)

Textual description of the device type.

◆ EngineName()

str eVision.EasyDeepLearning.EDeepLearningDevice.EngineName ( self)

The name of the engine supporting this device.

◆ FullName()

str eVision.EasyDeepLearning.EDeepLearningDevice.FullName ( self)

A full name of the device.

◆ HasInferenceCapability()

bool eVision.EasyDeepLearning.EDeepLearningDevice.HasInferenceCapability ( self)

Whether the device can perform inference or not.

◆ HasTrainingCapability()

bool eVision.EasyDeepLearning.EDeepLearningDevice.HasTrainingCapability ( self)

Whether the device can perform training or not.

◆ IsPrecisionSupported()

bool eVision.EasyDeepLearning.EDeepLearningDevice.IsPrecisionSupported ( self,
eVision.EasyDeepLearning.EDeepLearningInferencePrecision precision )

Whether the given precision is supported by the device or not.

Parameters
precisionPrecision to check

◆ IsValid()

bool eVision.EasyDeepLearning.EDeepLearningDevice.IsValid ( self)

Whether this instance represents a usable device or not.

◆ Name()

str eVision.EasyDeepLearning.EDeepLearningDevice.Name ( self)

Name of the device.

◆ SupportedPrecisions()

list[eVision._eVision.EasyDeepLearning.EDeepLearningInferencePrecision] eVision.EasyDeepLearning.EDeepLearningDevice.SupportedPrecisions ( self)

Precisions supported by the device.