Trying to run in CPU mode: Saliency Maps and Guided Backpropagation.ipynb

15 views
Skip to first unread message

Tsvi

unread,
May 14, 2018, 2:09:35 AM5/14/18
to lasagne-users
I am a newbie to Lasagne and am trying to run https://github.com/Lasagne/Recipes/blob/master/examples/Saliency%20Maps%20and%20Guided%20Backpropagation.ipynb

I am not able to get my laptop GPU working correctly but still want to run in CPU mode.
I understand from the docs that both Lasagne and Theano are set up for it (and slowness should not be a big deal in this application).
However I get the error: ImportError: requires GPU support in: from lasagne.layers.dnn import Conv2DDNNLayer as ConvLayer
How can I resolve this?
Thanks,
-Tsvi

Frédéric Bastien

unread,
May 25, 2018, 11:44:24 AM5/25/18
to lasagn...@googlegroups.com
from lasagne.layers.dnn

specifically import a GPU only module. There is a new interface that could be something like in lasagne.layers.conv or something similar. Check the doc and use that new interface. This one will support CPU and GPU.

Frédéric

--
You received this message because you are subscribed to the Google Groups "lasagne-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lasagne-user...@googlegroups.com.
To post to this group, send email to lasagn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lasagne-users/9732443f-d2bc-42e7-bb01-f4437aa2b4e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages