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

#include <TestDataLessBase.h>

Collaboration diagram for onert_micro::test_model::TestDataLessBase< T, U >:

Public Member Functions

 TestDataLessBase (bool)
 
 TestDataLessBase ()=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< U > & 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< U > _reference_output_data
 
const unsigned char * _test_kernel_model_circle
 

Detailed Description

template<typename T, typename U>
class onert_micro::test_model::TestDataLessBase< T, U >

Definition at line 27 of file TestDataLessBase.h.

Constructor & Destructor Documentation

◆ TestDataLessBase() [1/2]

template<typename T , typename U >
onert_micro::test_model::TestDataLessBase< T, U >::TestDataLessBase ( bool  )
inlineexplicit

Definition at line 30 of file TestDataLessBase.h.

31 {
32 // Do nothing
33 }

◆ TestDataLessBase() [2/2]

template<typename T , typename U >
onert_micro::test_model::TestDataLessBase< T, U >::TestDataLessBase ( )
delete

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 39 of file TestDataLessBase.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::TestDataLessBase< T, U >::_input1_data, and onert_micro::test_model::TestDataLessBase< T, U >::_input2_data.

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

Field Documentation

◆ _input1_data

◆ _input2_data

◆ _reference_output_data

◆ _test_kernel_model_circle


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