fix: Do not assert fail with too large weight and fix computation of 2-Norm with negative weigth (close #892)

This commit is contained in:
Quentin Bourgerie
2023-01-19 13:31:38 +01:00
parent 227a0747fa
commit 49b8bf484c
6 changed files with 40 additions and 57 deletions

View File

@@ -16,7 +16,7 @@ unsigned int getEintPrecision(mlir::Value value);
std::unique_ptr<mlir::Pass> createMANPPass(bool debug = false);
std::unique_ptr<mlir::Pass>
createMaxMANPPass(std::function<void(const llvm::APInt &, unsigned)> setMax);
createMaxMANPPass(std::function<void(uint64_t, unsigned)> setMax);
} // namespace concretelang
} // namespace mlir