Closed gforge closed 9 years ago
Hey gforge, which version of theano are you using? Google helps me find: https://groups.google.com/forum/#!topic/theano-users/IHKB_vxKJrU
can you try running it with theano flag "exception_verbosity=high" ?
It is the 0.7.0 version together with CUDA 7.0. A slightly surprising detail is that Alec Radford's almost identical tutorials work (https://github.com/Newmu/Theano-Tutorials). Once I'm back at work I'll try with the verbose command.
Sorry for the delay, here's the error with verbosity high:
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 0x7f254fd261d0>},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)]
Debugprint of the apply node:
GpuCrossentropySoftmaxArgmax1HotWithBias.0 [@A] <CudaNdarrayType(float32, vector)> ''
|GpuDot22 [@B] <CudaNdarrayType(float32, matrix)> ''
| |GpuElemwise{Composite{[tanh(add(i0, i1))]}}[(0, 0)] [@C] <CudaNdarrayType(float32, matrix)> ''
| | |GpuDot22 [@D] <CudaNdarrayType(float32, matrix)> ''
| | | |GpuSubtensor{int32:int32:} [@E] <CudaNdarrayType(float32, matrix)> ''
| | | | |<CudaNdarrayType(float32, matrix)> [@F] <CudaNdarrayType(float32, matrix)>
| | | | |ScalarFromTensor [@G] <int32> ''
| | | | | |Elemwise{mul,no_inplace} [@H] <TensorType(int32, scalar)> ''
| | | | | |TensorConstant{200} [@I] <TensorType(int32, scalar)>
| | | | | |<TensorType(int32, scalar)> [@J] <TensorType(int32, scalar)>
| | | | |ScalarFromTensor [@K] <int32> ''
| | | | |Elemwise{Composite{[mul(i0, add(i1, i2))]}} [@L] <TensorType(int32, scalar)> ''
| | | | |TensorConstant{200} [@I] <TensorType(int32, scalar)>
| | | | |TensorConstant{1} [@M] <TensorType(int32, scalar)>
| | | | |<TensorType(int32, scalar)> [@J] <TensorType(int32, scalar)>
| | | |W [@N] <CudaNdarrayType(float32, matrix)>
| | |GpuDimShuffle{x,0} [@O] <CudaNdarrayType(float32, row)> ''
| | |b [@P] <CudaNdarrayType(float32, vector)>
| |W [@Q] <CudaNdarrayType(float32, matrix)>
|b [@R] <CudaNdarrayType(float32, vector)>
|GpuElemwise{Identity{output_types_preference=<theano.scalar.basic.specific_out object at 0x7f254fd261d0>},no_inplace} [@S] <CudaNdarrayType(float32, vector)> ''
|GpuSubtensor{int32:int32:} [@T] <CudaNdarrayType(float32, vector)> ''
|<CudaNdarrayType(float32, vector)> [@U] <CudaNdarrayType(float32, vector)>
|ScalarFromTensor [@G] <int32> ''
|ScalarFromTensor [@K] <int32> ''
GpuCrossentropySoftmaxArgmax1HotWithBias.1 [@A] <CudaNdarrayType(float32, matrix)> ''
GpuCrossentropySoftmaxArgmax1HotWithBias.2 [@A] <CudaNdarrayType(float32, vector)> ''
looks to me like a float32 <-> int32 mismatch, might just be an error in the code I hacked together for the meetup. More stable working code indeed by Alec Radford, or otherwise at deeplearning.net/tutorial/
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:
I run on a Ubuntu 14.04 system with a basic .theanorc config:
Any clue to what may be causing this error?
Thanks by the way for an excellent tutorial!