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

#include <TestDataGatherBase.h>

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

Public Member Functions

 TestDataGatherBase ()=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::TestDataGatherBase< T >

Definition at line 27 of file TestDataGatherBase.h.

Constructor & Destructor Documentation

◆ TestDataGatherBase()

template<typename T >
luci_interpreter::test_kernel::TestDataGatherBase< T >::TestDataGatherBase ( )
default

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 34 of file TestDataGatherBase.h.

35 {
36 switch (i)
37 {
38 case 0:
39 return _input_data;
40 default:
41 assert(false && "Wrong input index");
42 }
43 }

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

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

Field Documentation

◆ _input_data

template<typename T >
std::vector<T> luci_interpreter::test_kernel::TestDataGatherBase< T >::_input_data
protected

◆ _reference_output_data

template<typename T >
std::vector<T> luci_interpreter::test_kernel::TestDataGatherBase< T >::_reference_output_data
protected

◆ _test_kernel_model_circle

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

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