ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert_micro::test_model::TestDataS8ReshapeKernel Class Reference

#include <ReshapeKernel.h>

Collaboration diagram for onert_micro::test_model::TestDataS8ReshapeKernel:

Public Member Functions

 TestDataS8ReshapeKernel (bool is_neg)
 
 ~TestDataS8ReshapeKernel () override=default
 
const unsigned char * get_model_ptr () override final
 
const std::vector< int8_t > & get_input_data_by_index (int i) override final
 
const std::vector< int8_t > & get_output_data_by_index (int i) override final
 
- Public Member Functions inherited from onert_micro::test_model::TestDataBase< T, U >
virtual ~TestDataBase ()=default
 

Protected Attributes

std::vector< int8_t > _input_data
 
std::vector< int8_t > _reference_output_data
 
const unsigned char * _test_kernel_model_circle
 

Detailed Description

Definition at line 292 of file ReshapeKernel.h.

Constructor & Destructor Documentation

◆ TestDataS8ReshapeKernel()

onert_micro::test_model::TestDataS8ReshapeKernel::TestDataS8ReshapeKernel ( bool  is_neg)
inline

Definition at line 295 of file ReshapeKernel.h.

296 {
297 if (not is_neg)
298 {
302 }
303 else
304 {
308 }
309 }
const std::vector< int8_t > reference_output_data
const std::vector< int8_t > input_data
const std::vector< int8_t > reference_output_data

References _input_data, _reference_output_data, _test_kernel_model_circle, onert_micro::test_model::reshape_kernel_s8::input_data, onert_micro::test_model::neg_reshape_kernel_s8::input_data, onert_micro::test_model::reshape_kernel_s8::reference_output_data, onert_micro::test_model::neg_reshape_kernel_s8::reference_output_data, onert_micro::test_model::reshape_kernel_s8::test_kernel_model_circle, and onert_micro::test_model::neg_reshape_kernel_s8::test_kernel_model_circle.

◆ ~TestDataS8ReshapeKernel()

onert_micro::test_model::TestDataS8ReshapeKernel::~TestDataS8ReshapeKernel ( )
overridedefault

Member Function Documentation

◆ get_input_data_by_index()

const std::vector< int8_t > & onert_micro::test_model::TestDataS8ReshapeKernel::get_input_data_by_index ( int  i)
inlinefinaloverridevirtual

Implements onert_micro::test_model::TestDataBase< T, U >.

Definition at line 315 of file ReshapeKernel.h.

316 {
317 switch (i)
318 {
319 case 0:
320 return _input_data;
321 default:
322 assert(false && "Wrong input index");
323 }
324 }

References _input_data.

◆ get_model_ptr()

const unsigned char * onert_micro::test_model::TestDataS8ReshapeKernel::get_model_ptr ( )
inlinefinaloverridevirtual

◆ get_output_data_by_index()

const std::vector< int8_t > & onert_micro::test_model::TestDataS8ReshapeKernel::get_output_data_by_index ( int  i)
inlinefinaloverridevirtual

Implements onert_micro::test_model::TestDataBase< T, U >.

Definition at line 326 of file ReshapeKernel.h.

327 {
328 assert(i == 0);
330 }

References _reference_output_data.

Field Documentation

◆ _input_data

std::vector<int8_t> onert_micro::test_model::TestDataS8ReshapeKernel::_input_data
protected

Definition at line 333 of file ReshapeKernel.h.

Referenced by get_input_data_by_index(), and TestDataS8ReshapeKernel().

◆ _reference_output_data

std::vector<int8_t> onert_micro::test_model::TestDataS8ReshapeKernel::_reference_output_data
protected

Definition at line 334 of file ReshapeKernel.h.

Referenced by get_output_data_by_index(), and TestDataS8ReshapeKernel().

◆ _test_kernel_model_circle

const unsigned char* onert_micro::test_model::TestDataS8ReshapeKernel::_test_kernel_model_circle
protected

Definition at line 335 of file ReshapeKernel.h.

Referenced by get_model_ptr(), and TestDataS8ReshapeKernel().


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