Skip to content
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

DimError when generating the circuit settings #677

Closed
mmagician opened this issue Dec 30, 2023 · 4 comments · Fixed by #683
Closed

DimError when generating the circuit settings #677

mmagician opened this issue Dec 30, 2023 · 4 comments · Fixed by #683
Labels
bug Something isn't working

Comments

@mmagician
Copy link
Contributor

mmagician commented Dec 30, 2023

Describe the bug

Related to model 2 from #670.

I'm failing to generate the settings json with the following command:
ezkl gen-settings -M network.onnx --variables sequence_length=1,batch_size=1

Getting a DimError, though I am not able to see any further info on what the cause is.
With this new PR I get a little more info:

[E] [2023-12-30 18:49:16, ezkl::graph::model] - dimensionality error when manipulating a tensor: The current dimension 512 must be contained in the new shape [1, 1, 1] or be 1
[E] [2023-12-30 18:49:16, ezkl] - failed: General synthesis error

Expected behaviors

Steps to reproduce the bug

  1. Run ...
  2. Execute ...

Device and Operating System

OS: MacOS
Version: Ventura 13.3.1
Processor: Apple M1
Memory: 16 GB

Additional Information

@mmagician mmagician added the bug Something isn't working label Dec 30, 2023
@alexander-camuto
Copy link
Collaborator

@mmagician you need to add the variables --variables sequence_length=1,batch_size=1 to the end of the command as noted in #670

@mmagician
Copy link
Contributor Author

The command I ran actually includes that, sorry @alexander-camuto the original comment didn't mention the right command, edited now.
So the issue still stands.

@mmagician
Copy link
Contributor Author

@alexander-camuto ping to re-open the issue as per the above comment.

@alexander-camuto
Copy link
Collaborator

reopened and patched @mmagician

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants