ONE - On-device Neural Engine
Loading...
Searching...
No Matches
TestUtils.cpp File Reference
#include "kernels/TestUtils.h"
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  luci_interpreter
 
namespace  luci_interpreter::kernels
 
namespace  luci_interpreter::kernels::testing
 

Functions

Tensor luci_interpreter::kernels::testing::makeOutputTensor (DataType element_type)
 
Tensor luci_interpreter::kernels::testing::makeOutputTensor (DataType element_type, float scale, int32_t zero_point)
 
std::vector< float > luci_interpreter::kernels::testing::dequantizeTensorData (const Tensor &tensor)
 
Matcher< std::vector< float > > luci_interpreter::kernels::testing::FloatArrayNear (const std::vector< float > &values, float max_abs_error)
 
std::vector< int32_t > luci_interpreter::kernels::testing::extractTensorShape (const Tensor &tensor)