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

#include <ShapeKernel.h>

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

Public Member Functions

 TestDataShapeKernel ()
 
 ~TestDataShapeKernel () override=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< 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 > _input_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::TestDataShapeKernel< T, U >

Definition at line 73 of file ShapeKernel.h.

Constructor & Destructor Documentation

◆ TestDataShapeKernel()

template<typename T , typename U >
onert_micro::test_model::TestDataShapeKernel< T, U >::TestDataShapeKernel ( )
inline

◆ ~TestDataShapeKernel()

template<typename T , typename U >
onert_micro::test_model::TestDataShapeKernel< T, U >::~TestDataShapeKernel ( )
overridedefault

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 87 of file ShapeKernel.h.

88 {
89 switch (i)
90 {
91 case 0:
92 return _input_data;
93 default:
94 assert(false && "Wrong input index");
95 }
96 }

References onert_micro::test_model::TestDataShapeKernel< T, U >::_input_data.

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

Field Documentation

◆ _input_data

◆ _reference_output_data

template<typename T , typename U >
std::vector<U> onert_micro::test_model::TestDataShapeKernel< T, U >::_reference_output_data
protected

◆ _test_kernel_model_circle

template<typename T , typename U >
const unsigned char* onert_micro::test_model::TestDataShapeKernel< T, U >::_test_kernel_model_circle
protected

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