Class representing the settings of a Deep Learning benchmark. More...
#include <eVision/EasyDeepLearning/EDeepLearningBenchmarkSettings.h>
Public Member Functions | |
| EDeepLearningBenchmarkSettings () | |
| Constructor. | |
| EDeepLearningBenchmarkSettings (const eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings &other) | |
| Constructor. | |
| virtual | ~EDeepLearningBenchmarkSettings () throw () |
| eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings & | operator= (const eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings &other) |
| Assignment operator. | |
| virtual void | Load (const std::string &filePath) |
| Loads a EDeepLearningBenchmarkSettings object. The given ESerializer must have been created for reading. | |
| virtual void | Load (eVision::ESerializer *serializer) |
| Loads a EDeepLearningBenchmarkSettings object. The given ESerializer must have been created for reading. | |
| virtual void | Save (const std::string &filePath) |
| Saves the EDeepLearningBenchmarkSettings object. The given ESerializer must have been created for writing. | |
| virtual void | Save (eVision::ESerializer *serializer) |
| Saves the EDeepLearningBenchmarkSettings object. The given ESerializer must have been created for writing. | |
| std::string | GetName () const |
| Name of the benchmark. | |
| void | SetName (const std::string &benchName) |
| Name of the benchmark. | |
| std::string | GetEngine () const |
| Deep Learning engine to use for the benchmark. | |
| void | SetEngine (const std::string &engine) |
| Deep Learning engine to use for the benchmark. | |
| eVision::EasyDeepLearning::EDeepLearningDevice | GetDevice () const |
| Device to use for the benchmark. | |
| void | SetDevice (const eVision::EasyDeepLearning::EDeepLearningDevice &dev) |
| Device to use for the benchmark. | |
| eVision::EasyDeepLearning::EDeepLearningInferencePrecision | GetInferencePrecision () const |
| Inference precision to use for the benchmark. | |
| void | SetInferencePrecision (eVision::EasyDeepLearning::EDeepLearningInferencePrecision prec) |
| Inference precision to use for the benchmark. | |
| int | GetNumExternalThreads () const |
| Number of external threads. | |
| void | SetNumExternalThreads (int val) |
| Number of external threads. | |
| int | GetNumInternalThreads () const |
| Number of internal threads. | |
| void | SetNumInternalThreads (int val) |
| Number of internal threads. | |
| void | SetCameraSpeed (float fps) |
| Camera speed to simulate. If equal to 0, the benchmark will produce images as fast as possible. | |
| float | GetCameraSpeed () const |
| Camera speed to simulate. If equal to 0, the benchmark will produce images as fast as possible. | |
| int | GetBatchSize () const |
| Batch size. | |
| void | SetBatchSize (int val) |
| Batch size. | |
| int | GetNumInferences () const |
| Number of iterations to use during the benchmark. | |
| void | SetNumInferences (int val) |
| Number of iterations to use during the benchmark. | |
| bool | GetInternalResizeDisabled () const |
| Whether to disable the internal resize operation performed by the Deep Learning tools. When disabled, the benchmark will generate images at the optimal size for the tool. | |
| void | SetInternalResizeDisabled (bool disabled) |
| Whether to disable the internal resize operation performed by the Deep Learning tools. When disabled, the benchmark will generate images at the optimal size for the tool. | |
| bool | GetOptimizedBatchSize () const |
| Whether to enable the auto setup of the batch size. | |
| void | SetOptimizedBatchSize (bool enable) |
| Whether to enable the auto setup of the batch size. | |
| EDeepLearningBenchmarkSettings (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Class representing the settings of a Deep Learning benchmark.
License(s): EasyClassify or EasySegment or EasyLocate
| eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::EDeepLearningBenchmarkSettings | ( | ) |
Constructor.
| eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::EDeepLearningBenchmarkSettings | ( | const eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings & | other | ) |
Constructor.
| other | The other EDeepLearningBenchmarkSettings that we will copy into this one. |
|
virtual | ||||||||||||
| eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::EDeepLearningBenchmarkSettings | ( | CppWrapperInternal::InternalConstructor | ) |
| int eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetBatchSize | ( | ) | const |
Batch size.
| float eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetCameraSpeed | ( | ) | const |
Camera speed to simulate. If equal to 0, the benchmark will produce images as fast as possible.
Camera speed higher than 500 frame per seconds will lead to unreliable results.
| eVision::EasyDeepLearning::EDeepLearningDevice eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetDevice | ( | ) | const |
Device to use for the benchmark.
| std::string eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetEngine | ( | ) | const |
Deep Learning engine to use for the benchmark.
| eVision::EasyDeepLearning::EDeepLearningInferencePrecision eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetInferencePrecision | ( | ) | const |
Inference precision to use for the benchmark.
| bool eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetInternalResizeDisabled | ( | ) | const |
Whether to disable the internal resize operation performed by the Deep Learning tools. When disabled, the benchmark will generate images at the optimal size for the tool.
| std::string eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetName | ( | ) | const |
Name of the benchmark.
| int eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetNumExternalThreads | ( | ) | const |
Number of external threads.
| int eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetNumInferences | ( | ) | const |
Number of iterations to use during the benchmark.
| int eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetNumInternalThreads | ( | ) | const |
Number of internal threads.
| bool eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::GetOptimizedBatchSize | ( | ) | const |
Whether to enable the auto setup of the batch size.
|
virtual |
Loads a EDeepLearningBenchmarkSettings object. The given ESerializer must have been created for reading.
| filePath | File path. |
|
virtual |
Loads a EDeepLearningBenchmarkSettings object. The given ESerializer must have been created for reading.
| serializer | Pointer to the ESerializer created for reading. |
| eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings & eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::operator= | ( | const eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings & | other | ) |
Assignment operator.
| other | The other EDeepLearningBenchmarkSettings that we will copy into this one. |
|
virtual |
Saves the EDeepLearningBenchmarkSettings object. The given ESerializer must have been created for writing.
| filePath | File path. |
|
virtual |
Saves the EDeepLearningBenchmarkSettings object. The given ESerializer must have been created for writing.
| serializer | Pointer to the ESerializer created for writing. |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetBatchSize | ( | int | val | ) |
Batch size.
| val | Batch size |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetCameraSpeed | ( | float | fps | ) |
Camera speed to simulate. If equal to 0, the benchmark will produce images as fast as possible.
| fps | Camera frame rate |
Camera speed higher than 500 frame per seconds will lead to unreliable results.
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetDevice | ( | const eVision::EasyDeepLearning::EDeepLearningDevice & | dev | ) |
Device to use for the benchmark.
| dev | Device to use for the benchmark |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetEngine | ( | const std::string & | engine | ) |
Deep Learning engine to use for the benchmark.
| engine | Engine to use for the benchmark |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetInferencePrecision | ( | eVision::EasyDeepLearning::EDeepLearningInferencePrecision | prec | ) |
Inference precision to use for the benchmark.
| prec | Inference precision to use for the benchmark |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetInternalResizeDisabled | ( | bool | disabled | ) |
Whether to disable the internal resize operation performed by the Deep Learning tools. When disabled, the benchmark will generate images at the optimal size for the tool.
| disabled | Whether to disable the internal resize |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetName | ( | const std::string & | benchName | ) |
Name of the benchmark.
| benchName | Name for the benchmark |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetNumExternalThreads | ( | int | val | ) |
Number of external threads.
| val | New number of external threads |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetNumInferences | ( | int | val | ) |
Number of iterations to use during the benchmark.
| val | Number of iterations |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetNumInternalThreads | ( | int | val | ) |
Number of internal threads.
| val | New number of internal threads |
| void eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::SetOptimizedBatchSize | ( | bool | enable | ) |
Whether to enable the auto setup of the batch size.
| CppWrapperInternal::WrappedClass eVision::EasyDeepLearning::EDeepLearningBenchmarkSettings::wrappedClass_ |