From ff790a3a0fac4f613c213401c9a775e2b756b596 Mon Sep 17 00:00:00 2001 From: Amrey Krause Date: Thu, 23 May 2024 11:32:08 +0100 Subject: [PATCH] Unpack error correction tensor into float array not double --- files/HW-error-correction/hw.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/HW-error-correction/hw.cxx b/files/HW-error-correction/hw.cxx index ce14bc1..004a8aa 100644 --- a/files/HW-error-correction/hw.cxx +++ b/files/HW-error-correction/hw.cxx @@ -131,8 +131,8 @@ class HW : public PhysicsModel { client->run_model("hw_model_n", {inKeyN}, {outKeyN}); // unpack output tensor - std::vector correctionVort(n_values, 0); - std::vector correctionN(n_values, 0); + std::vector correctionVort(n_values, 0); + std::vector correctionN(n_values, 0); client->unpack_tensor(outKeyVort, correctionVort.data(), {n_values}, SRTensorTypeFloat, SRMemLayoutContiguous); client->unpack_tensor(outKeyN, correctionN.data(), {n_values},