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

#include <ShapeKernel.h>

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

Public Member Functions

 TestDataShapeKernel ()
 
 ~TestDataShapeKernel () 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< 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 > _input_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::TestDataShapeKernel< T, U >

Definition at line 73 of file ShapeKernel.h.

Constructor & Destructor Documentation

◆ TestDataShapeKernel()

template<typename T , typename U >
luci_interpreter::test_kernel::TestDataShapeKernel< T, U >::TestDataShapeKernel ( )
inline

Definition at line 76 of file ShapeKernel.h.

References luci_interpreter::test_kernel::TestDataShapeKernel< T, U >::_input_data, luci_interpreter::test_kernel::TestDataShapeKernel< T, U >::_reference_output_data, luci_interpreter::test_kernel::TestDataShapeKernel< T, U >::_test_kernel_model_circle, luci_interpreter::test_kernel::shape_kernel::input_data, luci_interpreter::test_kernel::shape_kernel::reference_output_data, and luci_interpreter::test_kernel::shape_kernel::test_kernel_model_circle.

◆ ~TestDataShapeKernel()

template<typename T , typename U >
luci_interpreter::test_kernel::TestDataShapeKernel< T, U >::~TestDataShapeKernel ( )
overridedefault

Member Function Documentation

◆ get_input_data_by_index()

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

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

Definition at line 87 of file ShapeKernel.h.

88 {
89 switch (i)
90 {
91 case 0:
92 return _input_data;
93 default:
94 assert(false && "Wrong input index");
95 }
96 }

References luci_interpreter::test_kernel::TestDataShapeKernel< T, U >::_input_data.

◆ get_model_ptr()

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

◆ get_output_data_by_index()

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

Field Documentation

◆ _input_data

◆ _reference_output_data

◆ _test_kernel_model_circle

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

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