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

#include <IfKernel.h>

Collaboration diagram for luci_interpreter::test_kernel::TestDataIfKernel< T >:

Public Member Functions

 TestDataIfKernel ()
 
 ~TestDataIfKernel () 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 > _input1_data
 
std::vector< T > _input2_data
 
std::vector< T > _reference_output_data
 
const unsigned char * _test_kernel_model_circle
 

Detailed Description

template<typename T>
class luci_interpreter::test_kernel::TestDataIfKernel< T >

Definition at line 131 of file IfKernel.h.

Constructor & Destructor Documentation

◆ TestDataIfKernel()

template<typename T >
luci_interpreter::test_kernel::TestDataIfKernel< T >::TestDataIfKernel ( )
inline

Definition at line 134 of file IfKernel.h.

135 {
141 }
const std::vector< float > reference_output_data
Definition IfKernel.h:128
const std::vector< float > input_data
Definition IfKernel.h:123
const std::vector< float > input1_data
Definition IfKernel.h:125
const std::vector< float > input2_data
Definition IfKernel.h:126
const unsigned char test_kernel_model_circle[]
Definition IfKernel.h:52

References luci_interpreter::test_kernel::TestDataIfKernel< T >::_input1_data, luci_interpreter::test_kernel::TestDataIfKernel< T >::_input2_data, luci_interpreter::test_kernel::TestDataIfKernel< T >::_input_data, luci_interpreter::test_kernel::TestDataIfKernel< T >::_reference_output_data, luci_interpreter::test_kernel::TestDataIfKernel< T >::_test_kernel_model_circle, luci_interpreter::test_kernel::if_kernel::input1_data, luci_interpreter::test_kernel::if_kernel::input2_data, luci_interpreter::test_kernel::if_kernel::input_data, luci_interpreter::test_kernel::if_kernel::reference_output_data, and luci_interpreter::test_kernel::if_kernel::test_kernel_model_circle.

◆ ~TestDataIfKernel()

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

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 147 of file IfKernel.h.

148 {
149 switch (i)
150 {
151 case 0:
152 return _input_data;
153 case 1:
154 return _input1_data;
155 case 2:
156 return _input2_data;
157 default:
158 assert(false && "Wrong input index");
159 }
160 }

References luci_interpreter::test_kernel::TestDataIfKernel< T >::_input1_data, luci_interpreter::test_kernel::TestDataIfKernel< T >::_input2_data, and luci_interpreter::test_kernel::TestDataIfKernel< T >::_input_data.

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

Field Documentation

◆ _input1_data

◆ _input2_data

◆ _input_data

◆ _reference_output_data

◆ _test_kernel_model_circle

template<typename T >
const unsigned char* luci_interpreter::test_kernel::TestDataIfKernel< T >::_test_kernel_model_circle
protected

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