Skip to content

Commit

Permalink
[AutoBump] Merge with fixes of 0eba539 (Nov 15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgehre-amd committed Feb 3, 2025
2 parents f40c69d + 0eba539 commit 60fb108
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Dialect/TorchConversion/Transforms/UnpackQuantTensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ class UnpackQuantizedMatmulWeights
char mask = (1 << unpackedBitWidth) - 1;
for (int b = 0; b < packRatio; b++) {
newData[i * packRatio + b] =
APInt(unpackedBitWidth, (el & mask) >> (unpackedBitWidth * b));
APInt(unpackedBitWidth, (el & mask) >> (unpackedBitWidth * b),
/*isSigned=*/false, /*implicitTrunc=*/true);
mask = mask << unpackedBitWidth;
}
}
Expand Down

0 comments on commit 60fb108

Please sign in to comment.