graphific / dl-meetup-intro Goto Github PK
View Code? Open in Web Editor NEWCode for participants of "NLP and Deep Learning: introduction - Session I" at Sthlm NLP Meetup of 22 Jan 2015
License: GNU General Public License v2.0
Code for participants of "NLP and Deep Learning: introduction - Session I" at Sthlm NLP Meetup of 22 Jan 2015
License: GNU General Public License v2.0
Everything runs fine when running on the CPU while when I run the same code on my Tesla K40c device I get the following error:
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-38-45ae0203312f> in <module>()
6 for epoch in xrange(n_epochs):
7 for minibatch_index in xrange(n_train_batches):
----> 8 minibatch_avg_cost = train_model(minibatch_index)
9
10 validation_losses = [validate_model(i) for i
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.pyc in __call__(self, *args, **kwargs)
586 # For the CVM
587 gof.vm.raise_with_op(self.fn.nodes[self.fn.position_of_error],
--> 588 self.fn.thunks[self.fn.position_of_error])
589 else:
590 # For the c linker
/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.pyc in __call__(self, *args, **kwargs)
577 t0_fn = time.time()
578 try:
--> 579 outputs = self.fn()
580 except Exception:
581 if hasattr(self.fn, 'position_of_error'):
RuntimeError: Cuda error: GpuCrossentropySoftmaxArgmax1HotWithBias node_6b7275e07874be7aaf65352648b8c2d7_0: invalid configuration argument.
The kernel was launched with 1 threads, 0 blocks and 0 shared memory
Apply node that caused the error: GpuCrossentropySoftmaxArgmax1HotWithBias(GpuDot22.0, b, GpuElemwise{Identity{output_types_preference=<theano.scalar.basic.specific_out object at 0x7f2984c598d0>},no_inplace}.0)
Inputs shapes: [(0, 10), (10,), (0,)]
Inputs strides: [(10, 1), (1,), (1,)]
Inputs types: [CudaNdarrayType(float32, matrix), CudaNdarrayType(float32, vector), CudaNdarrayType(float32, vector)]
Use the Theano flag 'exception_verbosity=high' for a debugprint of this apply node.
I run on a Ubuntu 14.04 system with a basic .theanorc config:
~$ cat .theanorc
[global]
floatX = float32
device = gpu0
[nvcc]
fastmath = True
Any clue to what may be causing this error?
Thanks by the way for an excellent tutorial!
I tried to run PyConSe15-cat-vs-dog iPython notebook, but the following line crashes the notebook(The kernel appears to have died. It will restart automatically.):
net = caffe.Classifier(MODEL_FILE, PRETRAINED,
mean=np.load(caffe_root + 'python/caffe/imagenet/ilsvrc_2012_mean.npy').mean(1).mean(1),
channel_swap=(2,1,0),
raw_scale=255,
image_dims=(256, 256))
Am I doing something wrong here?
I have set up Caffe, CUDA and all the prerequisites mentioned in the notebook.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.