ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert_micro::test_model::TestDataMinimumBase< T > Class Template Reference

#include <TestDataMinimumBase.h>

Collaboration diagram for onert_micro::test_model::TestDataMinimumBase< T >:

Public Member Functions

 TestDataMinimumBase (bool)
 
 TestDataMinimumBase ()=delete
 
const unsigned char * get_model_ptr () override final
 
const std::vector< T > & get_input_data_by_index (int i) override final
 
const std::vector< T > & get_output_data_by_index (int i) override final
 
- Public Member Functions inherited from onert_micro::test_model::TestDataBase< T, U >
virtual ~TestDataBase ()=default
 

Protected Attributes

std::vector< T > _input1_data
 
std::vector< T > _input2_data
 
std::vector< T > _reference_output_data
 
const unsigned char * _test_kernel_model_circle
 

Detailed Description

template<typename T>
class onert_micro::test_model::TestDataMinimumBase< T >

Definition at line 27 of file TestDataMinimumBase.h.

Constructor & Destructor Documentation

◆ TestDataMinimumBase() [1/2]

template<typename T >
onert_micro::test_model::TestDataMinimumBase< T >::TestDataMinimumBase ( bool  )
inlineexplicit

Definition at line 30 of file TestDataMinimumBase.h.

31 {
32 // Do nothing
33 }

◆ TestDataMinimumBase() [2/2]

template<typename T >
onert_micro::test_model::TestDataMinimumBase< T >::TestDataMinimumBase ( )
delete

Member Function Documentation

◆ get_input_data_by_index()

template<typename T >
const std::vector< T > & onert_micro::test_model::TestDataMinimumBase< T >::get_input_data_by_index ( int  i)
inlinefinaloverridevirtual

Implements onert_micro::test_model::TestDataBase< T, U >.

Definition at line 39 of file TestDataMinimumBase.h.

40 {
41 switch (i)
42 {
43 case 0:
44 return _input1_data;
45 case 1:
46 return _input2_data;
47 default:
48 assert(false && "Wrong input index");
49 }
50 }

References onert_micro::test_model::TestDataMinimumBase< T >::_input1_data, and onert_micro::test_model::TestDataMinimumBase< T >::_input2_data.

◆ get_model_ptr()

template<typename T >
const unsigned char * onert_micro::test_model::TestDataMinimumBase< T >::get_model_ptr ( )
inlinefinaloverridevirtual

◆ get_output_data_by_index()

template<typename T >
const std::vector< T > & onert_micro::test_model::TestDataMinimumBase< T >::get_output_data_by_index ( int  i)
inlinefinaloverridevirtual

Field Documentation

◆ _input1_data

◆ _input2_data

◆ _reference_output_data

◆ _test_kernel_model_circle

template<typename T >
const unsigned char* onert_micro::test_model::TestDataMinimumBase< T >::_test_kernel_model_circle
protected

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