IO Error:Requires a GPU to work.

40 views
Skip to first unread message

vishwajit s.

unread,
Dec 14, 2016, 10:05:25 AM12/14/16
to lasagne-users
When I try to do:
from lasagne.layers.corrmm import Conv2DMMLayer as ConvLayer
it returns 
Requires a GPU to work:( as corrmm.py doesn't have a mode for CPUs)

Although my theano (config.device) recognizes that I have a CPU.

Jan Schlüter

unread,
Dec 16, 2016, 11:05:57 AM12/16/16
to lasagne-users
When I try to do:
from lasagne.layers.corrmm import Conv2DMMLayer as ConvLayer
it returns 
Requires a GPU to work:( as corrmm.py doesn't have a mode for CPUs)

Easiest solution: Do "from lasagne.layers import Conv2DLayer as ConvLayer" instead. You usually don't need the Conv2DMMLayer, Theano will pick the fastest available implementation by itself.
 
Although my theano (config.device) recognizes that I have a CPU.

If you meant "GPU", and Theano doesn't use it, see the installation guide for your platform: https://github.com/Lasagne/Lasagne/wiki/From-Zero-to-Lasagne

Good luck!
Jan

vishwajit s.

unread,
Dec 17, 2016, 10:05:01 AM12/17/16
to lasagne-users
Hey Jan, 
That worked, thanks but now I get a memory error when I try to build the VGG 19 convnet as I import the 7th fully connected layer with 4096 units. 
I'll post the details in a few hours.
Thanks in advance!

Jan Schlüter

unread,
Jan 6, 2017, 4:36:19 PM1/6/17
to lasagne-users
That worked, thanks but now I get a memory error when I try to build the VGG 19 convnet as I import the 7th fully connected layer with 4096 units. 
I'll post the details in a few hours.

Probably your GPU is too small -- how much memory does it have?

leepe...@gmail.com

unread,
Aug 6, 2019, 10:15:33 AM8/6/19
to lasagne-users
Hi, can you please send me the vgg19.pkl file?
Reply all
Reply to author
Forward
0 new messages