-
Notifications
You must be signed in to change notification settings - Fork 36
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
Segmentation fault on multiple calls to conv2d. #28
Comments
@arjunc77 I can't reproduce that... Could you paste the stack trace? |
|
NOTE: I get it working when i run the above code from inside rust-autograd examples path. But when i try to run the same code from another crate with autograd 1.0.0 installed i run into the above traceback. |
@raskr , i have a better debug trace from gdb. Please find it below:
|
@raskr @arjunc77 I have also reproduced this issue, on Ubuntu 18.04 using My gdb backtrace is the following:
|
@quietlychris , thanks for sharing. My OS is ubuntu 18.04 as well. Running the example within rust-autograd repo works fine. I believe lib.rs loads the Tensor or graph in a way that prevents this issue. |
Not able to replicate the issue on Mac OS. |
I'm running Ubuntu 18.04 on bare-metal, on a Lenovo x250, which is an x86_64 platform running an Intel i5-5300U. For what it's worth, I ran this program through valgrind to see if there was a memory leak associated with it ( |
In my case the OS (Ubuntu 18.04) runs on a hypervisor (vcpu). So, the common denominator is the OS whether or not it is baremetal. |
Hmm, looks like it's not just an Ubuntu 18.04 issue, though. I just tried it on Pop!_OS 20.04 (which is sort of an Ubuntu derivative) also running on x86_64 bare metal, and got the same behavior. |
@arjunc77 @quietlychris Thank you for the additional info!
Ummm that's strange. |
The problem is that the |
@acrrd @arjunc77 @quietlychris Made a patch release v1.0.1. Sorry for the inconvenience... |
Thanks @raskr , issue fixed with the new release. |
When trying to make a predict fn involving a conv2d (similar to cnn_mnist), i see Segmentation faults after around 21 calls.
Is this a bug or Is there a better way to make predictions?
Minimum code to reproduce:
The text was updated successfully, but these errors were encountered: