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

#include <TestDataArgMinBase.h>

Collaboration diagram for luci_interpreter::test_kernel::TestDataArgMinBase< T, O >:

Public Member Functions

 TestDataArgMinBase ()=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< O > & get_output_data_by_index (int i) override final
 
- Public Member Functions inherited from luci_interpreter::test_kernel::TestDataBase< T, O >
virtual ~TestDataBase ()=default
 

Protected Attributes

std::vector< T > _input1_data
 
std::vector< O > _reference_output_data
 
const unsigned char * _test_kernel_model_circle
 

Detailed Description

template<typename T, typename O>
class luci_interpreter::test_kernel::TestDataArgMinBase< T, O >

Definition at line 27 of file TestDataArgMinBase.h.

Constructor & Destructor Documentation

◆ TestDataArgMinBase()

template<typename T , typename O >
luci_interpreter::test_kernel::TestDataArgMinBase< T, O >::TestDataArgMinBase ( )
default

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 34 of file TestDataArgMinBase.h.

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

References luci_interpreter::test_kernel::TestDataArgMinBase< T, O >::_input1_data.

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

Field Documentation

◆ _input1_data

template<typename T , typename O >
std::vector<T> luci_interpreter::test_kernel::TestDataArgMinBase< T, O >::_input1_data
protected

◆ _reference_output_data

template<typename T , typename O >
std::vector<O> luci_interpreter::test_kernel::TestDataArgMinBase< T, O >::_reference_output_data
protected

◆ _test_kernel_model_circle

template<typename T , typename O >
const unsigned char* luci_interpreter::test_kernel::TestDataArgMinBase< T, O >::_test_kernel_model_circle
protected

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