From 0f100d7662b10af5d364752b40f0038c3e77f3cb Mon Sep 17 00:00:00 2001 From: blee-bot <93bslee@gmail.com> Date: Wed, 6 Nov 2024 09:26:35 +0900 Subject: [PATCH] [record-hessian]Fix build errors due to AffineQuantization. Fix build errors due to AffineQuantization. ONE-DCO-1.0-Signed-off-by: Banseok Lee --- compiler/record-hessian/src/HessianComputer.test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/compiler/record-hessian/src/HessianComputer.test.cpp b/compiler/record-hessian/src/HessianComputer.test.cpp index e8be604762f..1057267c0a4 100644 --- a/compiler/record-hessian/src/HessianComputer.test.cpp +++ b/compiler/record-hessian/src/HessianComputer.test.cpp @@ -33,11 +33,11 @@ TEST(HessianComputerTest, recordHessianValidInput) luci_interpreter::DataType data_type = luci_interpreter::DataType::FLOAT32; luci_interpreter::Shape shape({1, 4}); - luci_interpreter::AffineQuantization quantization; std::string tensor_name = "input_tensor"; - luci_interpreter::Tensor input_tensor(data_type, shape, quantization, tensor_name); + luci_interpreter::Tensor input_tensor(data_type, shape, luci_interpreter::AffineQuantization{}, + tensor_name); size_t data_size = input_data.size() * sizeof(float); std::vector buffer(data_size); @@ -58,11 +58,11 @@ TEST(HessianComputerTest, recordHessian_wrong_op_NEG) luci_interpreter::DataType data_type = luci_interpreter::DataType::FLOAT32; luci_interpreter::Shape shape({1, 2, 2, 1}); - luci_interpreter::AffineQuantization quantization; std::string tensor_name = "input_tensor"; - luci_interpreter::Tensor input_tensor(data_type, shape, quantization, tensor_name); + luci_interpreter::Tensor input_tensor(data_type, shape, luci_interpreter::AffineQuantization{}, + tensor_name); size_t data_size = input_data.size() * sizeof(float); std::vector buffer(data_size);