Skip to content

Commit

Permalink
[CHEETAH] fix eltype for mulaa
Browse files Browse the repository at this point in the history
  • Loading branch information
fionser committed Sep 19, 2024
1 parent f4533e2 commit 2bfe1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libspu/mpc/cheetah/arithmetic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ NdArrayRef MulAA::mulDirectly(KernelEvalContext* ctx, const NdArrayRef& x,
fy.slice({0}, {nhalf}, {1}), /*evaluato*/ rank != 0);
out_slices[1] = task.get();

NdArrayRef out(out_slices[0].eltype(), x.shape());
NdArrayRef out(x.eltype(), x.shape());
int64_t offset = 0;
for (auto& out_slice : out_slices) {
std::memcpy(out.data<std::byte>() + offset, out_slice.data(),
Expand Down

0 comments on commit 2bfe1d8

Please sign in to comment.