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

MLPBinaryConnect is full precision but not binary #2

Open
snownus opened this issue Sep 14, 2023 · 4 comments
Open

MLPBinaryConnect is full precision but not binary #2

snownus opened this issue Sep 14, 2023 · 4 comments

Comments

@snownus
Copy link

snownus commented Sep 14, 2023

seems MLPBinaryConnect is full precision but not binary?

@mengxiangming
Copy link
Collaborator

seems MLPBinaryConnect is full precision but not binary?

Different from STE where we have to create a special "binary" network architecture, we can simply create the network structure as usual (for example, MLPBinaryConnect). After that, if you want to obtain a binary neural network, you simply need to train the neural network using our BayesBiNN optimizer rather than the common continuous one like Adam. In this way, BayesBiNN is more flexible and convenient than the previous binary optimizers since it is model-agnostic.

@snownus
Copy link
Author

snownus commented Sep 14, 2023

I see. Thanks very much for the instant reply.

@snownus
Copy link
Author

snownus commented Sep 14, 2023

@mengxiangming could I know the python/pytorch enviroment of running the repo?

@mengxiangming
Copy link
Collaborator

@mengxiangming could I know the python/pytorch enviroment of running the repo?

Well, I think it can be run on normal settings and I forget the exact minimal requirement. I just tried running the repo on Pytorch '1.12.0' and Python 3.8.8 and it works.

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

No branches or pull requests

2 participants