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

#include <TestDataEqualBase.h>

Collaboration diagram for luci_interpreter::test_kernel::TestDataEqualBase< T, U >:

Public Member Functions

 TestDataEqualBase (bool)
 
 TestDataEqualBase ()=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 luci_interpreter::test_kernel::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 luci_interpreter::test_kernel::TestDataEqualBase< T, U >

Definition at line 27 of file TestDataEqualBase.h.

Constructor & Destructor Documentation

◆ TestDataEqualBase() [1/2]

template<typename T , typename U >
luci_interpreter::test_kernel::TestDataEqualBase< T, U >::TestDataEqualBase ( bool  )
inlineexplicit

Definition at line 30 of file TestDataEqualBase.h.

31 {
32 // Do nothing
33 }

◆ TestDataEqualBase() [2/2]

template<typename T , typename U >
luci_interpreter::test_kernel::TestDataEqualBase< T, U >::TestDataEqualBase ( )
delete

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 39 of file TestDataEqualBase.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 luci_interpreter::test_kernel::TestDataEqualBase< T, U >::_input1_data, and luci_interpreter::test_kernel::TestDataEqualBase< T, U >::_input2_data.

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

Field Documentation

◆ _input1_data

template<typename T , typename U >
std::vector<T> luci_interpreter::test_kernel::TestDataEqualBase< T, U >::_input1_data
protected

◆ _input2_data

template<typename T , typename U >
std::vector<T> luci_interpreter::test_kernel::TestDataEqualBase< T, U >::_input2_data
protected

◆ _reference_output_data

template<typename T , typename U >
std::vector<U> luci_interpreter::test_kernel::TestDataEqualBase< T, U >::_reference_output_data
protected

◆ _test_kernel_model_circle

template<typename T , typename U >
const unsigned char* luci_interpreter::test_kernel::TestDataEqualBase< T, U >::_test_kernel_model_circle
protected

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