Closed MeronZerihun closed 1 month ago
Note: the crash in the first case is due to this assert in DistributeGeneric.cpp
:
assert(isa<BlockArgument>(value) && "not sure what to do here, file a bug");
Replacing the affine.for with scf.for produces a return-type mismatch error that looks like the following:
I think this seems to be because the secret.generic is returning a secret type, but the iter_args is a plain integer value. It seems like we should upgrade the initial iter_args value to be secret.cast'ed into a secret type.
Let me investigate the first crash!
Likely the same sort of situation needs to happen for the first case too - let me see if I can tinker with it!
Well at least I left a nice error message 😎
This code snippet is taken from tests/openfhe/end_to_end/simple_sum.mlir
Running this command crashes, not sure why:
Replacing the
affine.for
withscf.for
produces a return-type mismatch error that looks like the following:Any idea why? @j2kun @asraa