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

#include <ReshapeKernel.h>

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

Public Member Functions

 TestDataReshapeKernel (bool is_neg)
 
 ~TestDataReshapeKernel () 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< 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
 
const unsigned char * _test_kernel_model_circle
 

Detailed Description

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

Definition at line 126 of file ReshapeKernel.h.

Constructor & Destructor Documentation

◆ TestDataReshapeKernel()

template<typename T >
onert_micro::test_model::TestDataReshapeKernel< T >::TestDataReshapeKernel ( bool  is_neg)
inline

Definition at line 129 of file ReshapeKernel.h.

130 {
131 if (not is_neg)
132 {
136 }
137 else
138 {
142 }
143 }
const std::vector< float > reference_output_data
const std::vector< float > reference_output_data
const unsigned char test_kernel_model_circle[]
const std::vector< float > input_data

References onert_micro::test_model::TestDataReshapeKernel< T >::_input_data, onert_micro::test_model::TestDataReshapeKernel< T >::_reference_output_data, onert_micro::test_model::TestDataReshapeKernel< T >::_test_kernel_model_circle, onert_micro::test_model::neg_reshape_kernel::input_data, onert_micro::test_model::reshape_kernel::input_data, onert_micro::test_model::neg_reshape_kernel::reference_output_data, onert_micro::test_model::reshape_kernel::reference_output_data, onert_micro::test_model::neg_reshape_kernel::test_kernel_model_circle, and onert_micro::test_model::reshape_kernel::test_kernel_model_circle.

◆ ~TestDataReshapeKernel()

template<typename T >
onert_micro::test_model::TestDataReshapeKernel< T >::~TestDataReshapeKernel ( )
overridedefault

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 149 of file ReshapeKernel.h.

150 {
151 switch (i)
152 {
153 case 0:
154 return _input_data;
155 default:
156 assert(false && "Wrong input index");
157 }
158 }

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

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

Field Documentation

◆ _input_data

◆ _reference_output_data

◆ _test_kernel_model_circle

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

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