Class representing a device that can run a neural network. A device is fully described by its EDeepLearningDevice::GetName and EDeepLearningDevice::GetEngineName. More...
#include <eVision/Easy/EasyDeepLearning/EDeepLearningDevice.h>
Public Member Functions | |
| EDeepLearningDevice () | |
| Default constructor. The resulting device will be invalid. | |
| EDeepLearningDevice (const eVision::EasyDeepLearning::EDeepLearningDevice &other) | |
| Copy constructor. | |
| virtual | ~EDeepLearningDevice () throw () |
| eVision::EasyDeepLearning::EDeepLearningDevice & | operator= (const eVision::EasyDeepLearning::EDeepLearningDevice &other) |
| Copy operator. | |
| bool | operator== (const eVision::EasyDeepLearning::EDeepLearningDevice &other) const |
| Equality operator. | |
| bool | operator!= (const eVision::EasyDeepLearning::EDeepLearningDevice &other) const |
| Inequality operator. | |
| std::string | GetName () const |
| Name of the device. | |
| std::string | GetFullName () const |
| A full name of the device. | |
| std::string | GetEngineName () const |
| The name of the engine supporting this device. | |
| eVision::EasyDeepLearning::EDeepLearningDeviceType | GetDeviceType () const |
| The device type. | |
| std::string | GetDeviceTypeDescription () const |
| Textual description of the device type. | |
| int | GetDeviceId () const |
| A device index corresponding to the index of the device within the engine. | |
| bool | HasTrainingCapability () const |
| Whether the device can perform training or not. | |
| bool | HasInferenceCapability () const |
| Whether the device can perform inference or not. | |
| std::vector< eVision::EasyDeepLearning::EDeepLearningInferencePrecision > | GetSupportedPrecisions () const |
| Precisions supported by the device. | |
| eVision::EasyDeepLearning::EDeepLearningInferencePrecision | GetDefaultPrecision () const |
| Default precision for this device. If supported by the device, the default precision will be FLOAT32. | |
| bool | IsPrecisionSupported (eVision::EasyDeepLearning::EDeepLearningInferencePrecision precision) const |
| Whether the given precision is supported by the device or not. | |
| bool | IsValid () const |
| Whether this instance represents a usable device or not. | |
| EDeepLearningDevice (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Class representing a device that can run a neural network. A device is fully described by its EDeepLearningDevice::GetName and EDeepLearningDevice::GetEngineName.
The other properties are information about the device and its capabilities.
License(s): BasicTypes
| eVision::EasyDeepLearning::EDeepLearningDevice::EDeepLearningDevice | ( | ) |
Default constructor. The resulting device will be invalid.
| eVision::EasyDeepLearning::EDeepLearningDevice::EDeepLearningDevice | ( | const eVision::EasyDeepLearning::EDeepLearningDevice & | other | ) |
Copy constructor.
| other | Device to copy |
|
virtual | ||||||||||||
| eVision::EasyDeepLearning::EDeepLearningDevice::EDeepLearningDevice | ( | CppWrapperInternal::InternalConstructor | ) |
| eVision::EasyDeepLearning::EDeepLearningInferencePrecision eVision::EasyDeepLearning::EDeepLearningDevice::GetDefaultPrecision | ( | ) | const |
Default precision for this device. If supported by the device, the default precision will be FLOAT32.
| int eVision::EasyDeepLearning::EDeepLearningDevice::GetDeviceId | ( | ) | const |
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.
| eVision::EasyDeepLearning::EDeepLearningDeviceType eVision::EasyDeepLearning::EDeepLearningDevice::GetDeviceType | ( | ) | const |
The device type.
| std::string eVision::EasyDeepLearning::EDeepLearningDevice::GetDeviceTypeDescription | ( | ) | const |
Textual description of the device type.
| std::string eVision::EasyDeepLearning::EDeepLearningDevice::GetEngineName | ( | ) | const |
The name of the engine supporting this device.
| std::string eVision::EasyDeepLearning::EDeepLearningDevice::GetFullName | ( | ) | const |
A full name of the device.
| std::string eVision::EasyDeepLearning::EDeepLearningDevice::GetName | ( | ) | const |
Name of the device.
| std::vector< eVision::EasyDeepLearning::EDeepLearningInferencePrecision > eVision::EasyDeepLearning::EDeepLearningDevice::GetSupportedPrecisions | ( | ) | const |
Precisions supported by the device.
| bool eVision::EasyDeepLearning::EDeepLearningDevice::HasInferenceCapability | ( | ) | const |
Whether the device can perform inference or not.
| bool eVision::EasyDeepLearning::EDeepLearningDevice::HasTrainingCapability | ( | ) | const |
Whether the device can perform training or not.
| bool eVision::EasyDeepLearning::EDeepLearningDevice::IsPrecisionSupported | ( | eVision::EasyDeepLearning::EDeepLearningInferencePrecision | precision | ) | const |
Whether the given precision is supported by the device or not.
| precision | Precision to check |
| bool eVision::EasyDeepLearning::EDeepLearningDevice::IsValid | ( | ) | const |
Whether this instance represents a usable device or not.
| bool eVision::EasyDeepLearning::EDeepLearningDevice::operator!= | ( | const eVision::EasyDeepLearning::EDeepLearningDevice & | other | ) | const |
Inequality operator.
| other | Device to compare with |
| eVision::EasyDeepLearning::EDeepLearningDevice & eVision::EasyDeepLearning::EDeepLearningDevice::operator= | ( | const eVision::EasyDeepLearning::EDeepLearningDevice & | other | ) |
Copy operator.
| other | Device to copy |
| bool eVision::EasyDeepLearning::EDeepLearningDevice::operator== | ( | const eVision::EasyDeepLearning::EDeepLearningDevice & | other | ) | const |
Equality operator.
| other | Device to compare with |
| CppWrapperInternal::WrappedClass eVision::EasyDeepLearning::EDeepLearningDevice::wrappedClass_ |