mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
feat: implement maxpool2d operation
This commit is contained in:
@@ -293,13 +293,6 @@ CompilerEngine::compile(llvm::SourceMgr &sm, Target target, OptionalLib lib) {
|
||||
return errorDiag("Transforming FHE boolean ops failed");
|
||||
}
|
||||
|
||||
// Encrypted mul rewriting
|
||||
if (mlir::concretelang::pipeline::transformHighLevelFHEOps(mlirContext,
|
||||
module, enablePass)
|
||||
.failed()) {
|
||||
return StreamStringError("Rewriting of encrypted mul failed");
|
||||
}
|
||||
|
||||
if (options.chunkIntegers) {
|
||||
if (mlir::concretelang::pipeline::transformFHEBigInt(
|
||||
mlirContext, module, enablePass, options.chunkSize,
|
||||
@@ -344,6 +337,13 @@ CompilerEngine::compile(llvm::SourceMgr &sm, Target target, OptionalLib lib) {
|
||||
.failed()) {
|
||||
return errorDiag("Lowering from FHELinalg to FHE failed");
|
||||
}
|
||||
|
||||
if (mlir::concretelang::pipeline::transformHighLevelFHEOps(mlirContext,
|
||||
module, enablePass)
|
||||
.failed()) {
|
||||
return StreamStringError("Rewriting of high level fhe ops failed");
|
||||
}
|
||||
|
||||
if (target == Target::FHE_NO_LINALG)
|
||||
return std::move(res);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user