Hi Pascal,
I tried to use theano.gpuarray.dnn.dnn_conv but it doesn't work: raise
ValueError("Could not infer context from inputs")
ValueError: Could not infer context from inputs
from theano.gpuarray.dnn import dnn_conv
out = dnn_conv(img= input,
kerns= self.W,
border_mode='valid',
subsample=(1, 1,1),
conv_mode='conv',
direction_hint=None,
workmem=None,
algo=None,
precision=None)
This is the output testing the small 3dconvnet:
Python 2.7.12 |Anaconda custom (64-bit)| (default, Jul 2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> runfile('/run/media/luca/8C9A-AEF4/core/run_multi_conv_t.py',
wdir='/run/media/luca/8C9A-AEF4/core')
Using gpu device 0: Tesla K40c (CNMeM is disabled, cuDNN 5103)
/home/luca/data/Theano-master/theano/tensor/signal/downsample.py:6:
UserWarning: downsample module has been moved to the
theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool
module.")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/luca/anaconda2/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py",
line 714, in runfile
execfile(filename, namespace)
File
"/home/luca/anaconda2/lib/python2.7/site-packages/spyderlib/widgets/externalshell/sitecustomize.py",
line 81, in execfile
builtins.execfile(filename, *where)
File "/run/media/luca/8C9A-AEF4/core/run_multi_conv_t.py", line 32, in
<module>
run_experiments()
File "/run/media/luca/8C9A-AEF4/core/run_multi_conv_t.py", line 25, in
run_experiments
Learning_rate=0.001,
File "mpr_convnet_class_t.py", line 159, in __init__
b )
File "convnet3d.py", line 120, in __init__
precision=None)
File "/home/luca/data/Theano-master/theano/gpuarray/dnn.py", line 904, in
dnn_conv
ctx_name = infer_context_name(img, kerns)
File "/home/luca/data/Theano-master/theano/gpuarray/basic_ops.py", line
121, in infer_context_name
raise ValueError("Could not infer context from inputs")
ValueError: Could not infer context from inputs
>>>
Many thanks
Luca
--
---
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.