Skip to content

Fix RESBM Region Build Error for Multiple Ciphertext Inputs in ONNX Compilation#6

Open
minghan1 wants to merge 3 commits intoant-research:mainfrom
minghan1:feature-merge
Open

Fix RESBM Region Build Error for Multiple Ciphertext Inputs in ONNX Compilation#6
minghan1 wants to merge 3 commits intoant-research:mainfrom
minghan1:feature-merge

Conversation

@minghan1
Copy link
Copy Markdown
Contributor

Description:
When processing multiple ciphertext inputs (e.g., in test case hemult2.onnx, which computes a * b * c), the compilation to onnx.c fails with the RESBM error: "region input must be MultCC/MultPC." This occurs because RESBM assigns each ciphertext to a region based on its mul_depth. Since the mul_depth values for ciphertexts a, b, and c differ, ciphertext c is not placed in region1, violating the subsequent requirement that only region1 can accept non-MultCC/MultPC inputs, while all other regions must have MultCC/MultPC inputs.

Solution:
After region creation, force all input ciphertexts to be assigned to region1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants