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

#include <TestDataUnpackBase.h>

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

Public Member Functions

 TestDataUnpackBase ()=default
 
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 > _input_data
 
std::vector< T > _reference_output_data_1
 
std::vector< T > _reference_output_data_2
 
const unsigned char * _test_kernel_model_circle
 

Detailed Description

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

Definition at line 28 of file TestDataUnpackBase.h.

Constructor & Destructor Documentation

◆ TestDataUnpackBase()

template<typename T >
onert_micro::test_model::TestDataUnpackBase< T >::TestDataUnpackBase ( )
default

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 35 of file TestDataUnpackBase.h.

36 {
37 switch (i)
38 {
39 case 0:
40 return _input_data;
41 default:
42 assert(false && "Wrong input index");
43 }
44 }

References onert_micro::test_model::TestDataUnpackBase< T >::_input_data.

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

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

Definition at line 46 of file TestDataUnpackBase.h.

47 {
48 switch (i)
49 {
50 case 0:
52 case 1:
54 default:
55 assert(false && "Wrong input index");
56 }
57 }

References onert_micro::test_model::TestDataUnpackBase< T >::_reference_output_data_1, and onert_micro::test_model::TestDataUnpackBase< T >::_reference_output_data_2.

Field Documentation

◆ _input_data

◆ _reference_output_data_1

◆ _reference_output_data_2

◆ _test_kernel_model_circle

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

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