-
Notifications
You must be signed in to change notification settings - Fork 1
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
Identifiers of BNN inputs and outputs in DIMACS file #43
Comments
Hi Supratik, Thanks for trying to use our tool! It should be easy to add some functionality to output that in the DIMACS output file but I am working for a deadline until May 5th so I have limited bandwidth until then. Nevertheless, will try to add it. Teodora |
Hi Teodora, -Supratik |
Hi Supratik, The convention is that the input variables are allocated first (i.e., corresponding to the inputs), then the variables corresponding to the output. So if the inputs are I was looking at the code and realized that the information about the input and output variables should be in the
First line is the first fresh variable (not used for PB constraints), then the next line are all of the variables of the first block (and only one) starting from But I will have to do a more thorough check (most likely after my deadline). I hope this helps in the meantime to unblock you! Thank you, For reference code where this is happening is Line 616 in 473b7f8
to Line 629 in 473b7f8
|
Thanks a lot, Teodra. We'll go ahead with this for now. This also matches what we found by trial and error (was a bit of tedium). We look forward to hearing from you more authoritatively after your May 5 deadline. |
Hi,
We are trying to use NPAQ for a slightly different application, and we need to know the identifiers corresponding to the BNN inputs and outputs in the DIMACS file that is generated.
For example, using the command
python npaq bnn --dataset mnist --resize 10,10 --num_classes 10 --arch 1blk_20 --encoder card encode
we get the DIMACS file and metainfo file as in the attached zip
npaq_files.zip
. It'll be great if the inputs and outputs of the BNN could also be indicated in comments in the DIMACS file.
The text was updated successfully, but these errors were encountered: