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

#include <ReshapeKernel.h>

Collaboration diagram for luci_interpreter::test_kernel::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 luci_interpreter::test_kernel::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 luci_interpreter::test_kernel::TestDataReshapeKernel< T >

Definition at line 127 of file ReshapeKernel.h.

Constructor & Destructor Documentation

◆ TestDataReshapeKernel()

template<typename T >
luci_interpreter::test_kernel::TestDataReshapeKernel< T >::TestDataReshapeKernel ( bool  is_neg)
inline

Definition at line 130 of file ReshapeKernel.h.

131 {
132 if (not is_neg)
133 {
137 }
138 else
139 {
143 }
144 }
const std::vector< float > reference_output_data

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

◆ ~TestDataReshapeKernel()

template<typename T >
luci_interpreter::test_kernel::TestDataReshapeKernel< T >::~TestDataReshapeKernel ( )
overridedefault

Member Function Documentation

◆ get_input_data_by_index()

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

Implements luci_interpreter::test_kernel::TestDataBase< T, U >.

Definition at line 150 of file ReshapeKernel.h.

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

References luci_interpreter::test_kernel::TestDataReshapeKernel< T >::_input_data.

◆ get_model_ptr()

template<typename T >
const unsigned char * luci_interpreter::test_kernel::TestDataReshapeKernel< T >::get_model_ptr ( )
inlinefinaloverridevirtual

◆ get_output_data_by_index()

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

Field Documentation

◆ _input_data

◆ _reference_output_data

◆ _test_kernel_model_circle


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