-
Notifications
You must be signed in to change notification settings - Fork 47
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
conversion from bnn.SpatialConvolution and bnn.binary to nn or cudnn #12
Comments
I don't think that converting layers in bnn.torch to a cpu layer is going to work without some effort. If you look at the implementation of the layers in bnn.torch, they are implemented in Nvidia CUDA. You are going to have to write the corresponding cpu code yourself and use this function to swap it out:
|
Thank you for reply btomtom5. |
Hmmm. I don't think that works because the lua Why do you want to run it in cpu only mode? I suggest renting out an ec2 instance with gpu support. |
Yeah. |
That's correct, but you only need to write the forward pass of it.
After you do this, you should search through the loaded module and replace them with your newly written module using the code I shared above. You also have to make sure that the weights are migrated over though. |
I was trying to convert this model into CPU supported device(nn), was able to convert some of the layers using cudnn.convert, but getting stuck at layers from bnn.torch, has anyone converted bnn layers to nn or cudnn.
any help would be appreciated.
Thank you
The text was updated successfully, but these errors were encountered: