Fix compilation error on G++ 9.4

This commit is contained in:
RangerUFO 2025-06-04 17:39:37 +08:00
parent 6897313080
commit a82f8d5690
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ static void MapAll(const std::vector<TensorToRead>& tensors,
// Mode == kReadBF16: // Mode == kReadBF16:
template <typename T> template <typename T>
static void DecompressToBF16(const MatPtr& mat, static void DecompressToBF16(MatPtr& mat,
const hwy::AlignedFreeUniquePtr<uint8_t[]>& buf) { const hwy::AlignedFreeUniquePtr<uint8_t[]>& buf) {
hwy::HWY_NAMESPACE::ScalableTag<BF16> dbf; hwy::HWY_NAMESPACE::ScalableTag<BF16> dbf;
const size_t cols = mat.Cols(); const size_t cols = mat.Cols();