question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pool_2d() got an unexpected keyword argument 'ws'

See original GitHub issue

#The following github code is not consistent with keras 2.0.0. I ran cifar10_cnn.py from examples. It is giving error in calling pool_2d(). Function arguments do not seem to be consistent.

Kindly check this.

curl -sSL https://github.com/fchollet/keras/raw/master/examples/cifar10_cnn.py | python

Using Theano backend. x_train shape: (50000, 32, 32, 3) 50000 train samples 10000 test samples /home/abhijeet/miniconda2/lib/python2.7/site-packages/keras/backend/theano_backend.py:1703: UserWarning: [‘filter_dilation’] are now deprecated in tensor.nnet.abstract_conv.conv2d interface and will be ignored. filter_dilation=dilation_rate) Traceback (most recent call last): File “<stdin>”, line 45, in <module> File “/home/abhijeet/miniconda2/lib/python2.7/site-packages/keras/models.py”, line 455, in add output_tensor = layer(self.outputs[0]) File “/home/abhijeet/miniconda2/lib/python2.7/site-packages/keras/engine/topology.py”, line 545, in call output = self.call(inputs, **kwargs) File “/home/abhijeet/miniconda2/lib/python2.7/site-packages/keras/layers/pooling.py”, line 154, in call data_format=self.data_format) File “/home/abhijeet/miniconda2/lib/python2.7/site-packages/keras/layers/pooling.py”, line 217, in _pooling_function pool_mode=‘max’) File “/home/abhijeet/miniconda2/lib/python2.7/site-packages/keras/backend/theano_backend.py”, line 1833, in pool2d mode=‘max’) TypeError: pool_2d() got an unexpected keyword argument ‘ws’

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11

github_iconTop GitHub Comments

17reactions
vadimnazarovcommented, Mar 17, 2017

Updating to the latest version of Theano via

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

worked for me.

6reactions
AvantiShricommented, Mar 15, 2017

In theano 0.8, I believe the argument is ds. It seems that the code is intended for theano 0.9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pool_2d() got an unexpected keyword argument 'ws'_ClaireQi ...
更新完theano后报错“ValueError: Invalid value ("cpu") for configuration variable "gpu". Valid options start with one of "device", "opencl", ...
Read more >
TypeError: __init__() got an unexpected keyword argument ...
Please try by deleting the progress_bar_refresh_rate=5 argument, since this keyword argument is no longer supported by the latest version ...
Read more >
PyTorch Transformers: TypeError: forward() got an ...
At the beginning of training I get the following error: Traceback (most recent ... TypeError: forward() got an unexpected keyword argument ...
Read more >
11th International Conference on Practical Applications of ...
The series “Advances in Intelligent Systems and Computing” contains publications on theory, applications, and design methods of Intelligent Systems and ...
Read more >
adaptive_avg_pool2d - 程序员宅基地
AdaptiveAvgPool2d()自适应平均池化函数的一些理解torch.nn.AdaptiveAvgPool2d()接受两个 ... TypeError: pool_2d() got an unexpected keyword argument 'ws'如何解决.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found