Skip to content

Commit

Permalink
[CHEETAH] fix eltype for mulaa (#857)
Browse files Browse the repository at this point in the history
# Pull Request

## What problem does this PR solve?

Issue Number: Fixed #

## Possible side effects?

- Performance:

- Backward compatibility:
  • Loading branch information
fionser authored Sep 19, 2024
1 parent f4533e2 commit aad59d2
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 aad59d2

Please sign in to comment.