mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(compiler): Concrete.ZeroOp is a 0 value tensor in BConcrete Dialect
This commit is contained in:
committed by
Ayoub Benaissa
parent
0e717ea266
commit
dd28a7f132
@@ -128,7 +128,7 @@ struct ZeroOpPattern : public mlir::OpRewritePattern<ZeroOp> {
|
||||
mlir::ValueRange blockArgs) {
|
||||
// %c0 = 0 : i64
|
||||
auto cstOp = nestedBuilder.create<mlir::arith::ConstantOp>(
|
||||
nestedLoc, nestedBuilder.getI64IntegerAttr(1));
|
||||
nestedLoc, nestedBuilder.getI64IntegerAttr(0));
|
||||
// tensor.yield %z : !FHE.eint<p>
|
||||
nestedBuilder.create<mlir::tensor::YieldOp>(nestedLoc, cstOp.getResult());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user