You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set "optimizer=None" in .theanorc file i.e if code is run on CPU, No error occurs. But when run using GPU (optimizer=fast_run) following error occurs:
`
Traceback (most recent call last):
File "C:/Users/Lab/PycharmProjects/srcovnet/shariq/cov2d.py", line 59, in <module>
model.fit(data_train,labels_train,nb_epoch=10)
File "C:\Users\Lab\Anaconda2\lib\site-packages\keras\models.py", line 652, in fit
sample_weight=sample_weight)
File "C:\Users\Lab\Anaconda2\lib\site-packages\keras\engine\training.py", line 1111, in fit
initial_epoch=initial_epoch)
File "C:\Users\Lab\Anaconda2\lib\site-packages\keras\engine\training.py", line 826, in _fit_loop
outs = f(ins_batch)
File "C:\Users\Lab\Anaconda2\lib\site-packages\keras\backend\theano_backend.py", line 811, in
__call__
return self.function(*inputs)
File "C:\Users\Lab\Anaconda2\lib\site-packages\theano\compile\function_module.py", line 871, in
__call__
storage_map=getattr(self.fn, 'storage_map', None))
File "C:\Users\Lab\Anaconda2\lib\site-packages\theano\gof\link.py", line 314, in raise_with_op
reraise(exc_type, exc_value, exc_trace)
File "C:\Users\Lab\Anaconda2\lib\site-packages\theano\compile\function_module.py", line 859, in
__call__
outputs = self.fn()
ValueError: GpuDnnConv images and kernel must have the same stack size`
What is the problem?
The text was updated successfully, but these errors were encountered:
Which version of Keras are you using? I looks similar to a problem I had before and that was fixed by #4631. If your problem is similar, upgrading to 1.2.0 might help. Keras 1.1.2 and older have an incorrect order of the filter shape in the deconvolution layer for Theano.
If this is indeed the cause of your problem, your code probably also doesn't do what you want in CPU mode. It's just that the GPU code has better checks. (This is fixed in the current Theano master and should be included in the next Theano release.)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, but feel free to re-open it if needed.
I'm trying to build a Deconvolutional Network, model is built as follows:
`
model = Sequential([
])
`
If I set "optimizer=None" in .theanorc file i.e if code is run on CPU, No error occurs. But when run using GPU (optimizer=fast_run) following error occurs:
`
What is the problem?
The text was updated successfully, but these errors were encountered: