ONE - On-device Neural Engine
Loading...
Searching...
No Matches
training_configure_tool::TrainResult Struct Reference

#include <TrainConfigData.h>

Public Member Functions

 TrainResult ()=default
 
 TrainResult (TrainData train_data)
 

Data Fields

std::pair< onert_micro::OMMetrics, float > best_metrics_results = {}
 
size_t peak_memory_footprint = 0
 

Detailed Description

Definition at line 73 of file TrainConfigData.h.

Constructor & Destructor Documentation

◆ TrainResult() [1/2]

training_configure_tool::TrainResult::TrainResult ( )
default

◆ TrainResult() [2/2]

training_configure_tool::TrainResult::TrainResult ( TrainData  train_data)
inlineexplicit

Definition at line 79 of file TrainConfigData.h.

80 {
81 peak_memory_footprint = std::numeric_limits<size_t>::max();
82 switch (train_data.metrics_to_check_best_config)
83 {
86 break;
89 std::numeric_limits<float>::max()};
90 break;
92 best_metrics_results = {onert_micro::MSE_METRICS, std::numeric_limits<float>::max()};
93 break;
95 best_metrics_results = {onert_micro::MAE_METRICS, std::numeric_limits<float>::max()};
96 break;
97 default:
98 assert(false && "Unsupported type");
99 break;
100 }
101 }
@ CROSS_ENTROPY_METRICS
Definition OMConfig.h:42
std::pair< onert_micro::OMMetrics, float > best_metrics_results

References onert_micro::ACCURACY, best_metrics_results, onert_micro::CROSS_ENTROPY_METRICS, onert_micro::MAE_METRICS, training_configure_tool::TrainData::metrics_to_check_best_config, onert_micro::MSE_METRICS, and peak_memory_footprint.

Field Documentation

◆ best_metrics_results

◆ peak_memory_footprint


The documentation for this struct was generated from the following file: