-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Please either set all three 'ordered_module_input_names', 'ordered_module_output_names' and 'quant_layers_dict' or none of them. #630
Comments
Hello @fabecode , would you mind sharing a link to the current state of your modifications? It would make it easier for us to help you with access to the code changes you made. |
Hi @fd0r, Here is the link to my GitHub repository: fabecode/GraphML-FHE. You could view my quantised GNN model in the Upon further investigation of the ValueError in quantized_module.py, it seems that the root cause stems from the Any advice or suggestions would be really appreciated. Thank you so much! |
Hello @fabecode , Thanks for your patience ! |
Thank you @RomanBredehoft. Appreciate your help! In relation to my project, I have also just applied for the Zama Grant program at zama-ai/bounty-program#119. Looking forward to hearing from you again! |
Any update on this? I have the same problem. @fabecode If you solved the problem, would you mind sharing your solution? |
If this is helpful to anyone, this is what I found out. This error happens in the function model_str = model.SerializeToString()
if fixed_point:
optimized_model_str = C.optimize_fixedpoint(model_str, passes)
else:
optimized_model_str = C.optimize(model_str, passes)
return onnx.load_from_string(optimized_model_str) What I noticed is that if you check the model graph before this operation it has a positive number of nodes, inputs and outputs, while after they are all 0... So what I did is just replace this code with I want just to mention that before getting to this error I also had some warnings and I think some problem with the IR version of the ONNX model that I bypassed, so probably the |
Summary
Hello, I am trying to create a custom ScatterElements ONNX node in Concrete ML.
After the conversion of the graph nodes from ONNX to NumPy, I face the following error:
ValueError: Please either set all three 'ordered_module_input_names', 'ordered_module_output_names' and 'quant_layers_dict' or none of them.
fromconcrete/ml/quantization/quantized_module.py", line 109.
Below is a snippet of where the ValueError was raised:Upon inspection, the variables hold the following values:
ordered_module_input_names
:<generator object ONNXConverter.quantize_module.<locals>.<genexpr> at 0x7f0168245660>
ordered_module_output_names
:<generator object ONNXConverter.quantize_module.<locals>.<genexpr> at 0x7f0168245740>
quant_layers_dict
: {}Do you have any suggestions on what went wrong and any tips on how to debug above? What is the input and output of above supposed to look like? Thank you!
The text was updated successfully, but these errors were encountered: