Skip to content

Commit

Permalink
Unpack error correction tensor into float array not double
Browse files Browse the repository at this point in the history
  • Loading branch information
akrause2014 authored May 23, 2024
1 parent 6139808 commit ff790a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/HW-error-correction/hw.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ class HW : public PhysicsModel {
client->run_model("hw_model_n", {inKeyN}, {outKeyN});

// unpack output tensor
std::vector<double> correctionVort(n_values, 0);
std::vector<double> correctionN(n_values, 0);
std::vector<float> correctionVort(n_values, 0);
std::vector<float> correctionN(n_values, 0);
client->unpack_tensor(outKeyVort, correctionVort.data(), {n_values},
SRTensorTypeFloat, SRMemLayoutContiguous);
client->unpack_tensor(outKeyN, correctionN.data(), {n_values},
Expand Down

0 comments on commit ff790a3

Please sign in to comment.