On Fri, Oct 14, 2016, [email protected] wrote:
> Hi Pascal,
> I don't know how to see what happens during "raise_with_op" in  that call.

So, when you are at the following point, are you still in the pdb shell
or did it crash the interpreter?

If you are still in pdb, you can call "up" until you are at " File
"/home/luca/data/Theano-master/theano/gof/link.py", line 167, in
raise_with_op" and try to print "node" and "exc_info".

Otherwise, you can edit theano/gof/link.py and add "import pdb;
pdb.set_trace()" at the beginning of the definition of "raise_with_op"
and try to print those variables then.

> This is the output  using pdb inside spyder:
> /home/luca/data/DeepLearningTutorials/Theano-3D-Convnet-master/convnet3d/core/mpr_convnet_class.py(331)__init__()
> -> a = train_set_x[minibatch_index:minibatch_index+batch_size]
> (Pdb) Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File 
> "/home/luca/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py",
>  
> line 888, in debugfile
>     debugger.run("runfile(%r, args=%r, wdir=%r)" % (filename, args, wdir))
>   File "/home/luca/anaconda2/lib/python2.7/bdb.py", line 400, in run
>     exec cmd in globals, locals
>   File "<string>", line 1, in <module>
>   File 
> "/home/luca/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py",
>  
> line 866, in runfile
>     execfile(filename, namespace)
>   File 
> "/home/luca/anaconda2/lib/python2.7/site-packages/spyder/utils/site/sitecustomize.py",
>  
> line 94, in execfile
>     builtins.execfile(filename, *where)
>   File 
> "/home/luca/data/DeepLearningTutorials/Theano-3D-Convnet-master/convnet3d/core/run_multi_conv.py",
>  
> line 42, in <module>
>     run_experiments()
>   File 
> "/home/luca/data/DeepLearningTutorials/Theano-3D-Convnet-master/convnet3d/core/run_multi_conv.py",
>  
> line 33, in run_experiments
>     Zoom = 0.0
>   File "mpr_convnet_class.py", line 333, in __init__
>     training_cost_ij=train_model(a, b) 
>   File "/home/luca/data/Theano-master/theano/compile/function_module.py", 
> line 879, in __call__
>     storage_map=getattr(self.fn, 'storage_map', None))
>   File "/home/luca/data/Theano-master/theano/gof/link.py", line 167, in 
> raise_with_op
>     "\nInputs values: %s" % scalar_values)
>   File "pygpu/gpuarray.pyx", line 1941, in pygpu.gpuarray.GpuArray.__repr__ 
> (pygpu/gpuarray.c:24742)
>   File 
> "/home/luca/anaconda2/lib/python2.7/site-packages/numpy/core/numeric.py", 
> line 482, in asarray
>     return array(a, dtype, copy=False, order=order)
>   File "pygpu/gpuarray.pyx", line 1572, in 
> pygpu.gpuarray.GpuArray.__array__ (pygpu/gpuarray.c:20224)
>   File "pygpu/gpuarray.pyx", line 1320, in pygpu.gpuarray.pygpu_as_ndarray 
> (pygpu/gpuarray.c:17346)
>   File "pygpu/gpuarray.pyx", line 347, in pygpu.gpuarray.array_read 
> (pygpu/gpuarray.c:6114)
> pygpu.gpuarray.GpuArrayException: an illegal memory access was encountered
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "theano-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.


-- 
Pascal

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to