Fix compilation error of the weights compression tool

This commit is contained in:
RangerUFO 2024-10-11 18:55:06 +08:00
parent dfda53e634
commit ed88115e6a
1 changed files with 2 additions and 2 deletions

View File

@ -161,8 +161,8 @@ void CompressWeights(const Path& weights_path,
printf("Compressing weights from %s to %s\n", weights_path.path.c_str(), printf("Compressing weights from %s to %s\n", weights_path.path.c_str(),
compressed_weights_path.path.c_str()); compressed_weights_path.path.c_str());
using CConfig = Configs::c; using CConfig = typename Configs::c;
using UCConfig = Configs::uc; using UCConfig = typename Configs::uc;
// Allocate compressed weights. // Allocate compressed weights.
using CWeights = CompressedWeights<CConfig>; using CWeights = CompressedWeights<CConfig>;
ByteStorageT c_weights_u8 = AllocateCompressedWeights<CConfig>()(pool); ByteStorageT c_weights_u8 = AllocateCompressedWeights<CConfig>()(pool);