Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tensorflow.python.framework.errors_impl.InvalidArgumentError: Default AvgPoolingOp only supports NHWC on device type CPU [[{{node 0.3562700616991372/AvgPool}}]] #7

Open
mumuyanyan opened this issue Sep 9, 2019 · 6 comments

Comments

@mumuyanyan
Copy link

tensorflow.python.framework.errors_impl.InvalidArgumentError: Default AvgPoolingOp only supports NHWC on device type CPU
[[{{node 0.3562700616991372/AvgPool}}]]

@gstark0
Copy link

gstark0 commented Sep 9, 2019

You need a proper GPU

@vaibhavch
Copy link

@mumuyanyan you don't need a GPU. Alternative solution is to compile Tensorflow with intel-mkl support.

conda install -c anaconda tensorflow-mkl

few code changes required to run with tf 2.0

@murphye
Copy link

murphye commented Mar 12, 2020

@vaibhavch Great tip. I was able to get this working without GPU with https://pypi.org/project/intel-tensorflow/#history 1.13.2 with no code changes.

@ibtehajali67
Copy link

ibtehajali67 commented Feb 4, 2021

I solved this error by using pip install tensorflow-gpu=1.13.1.
Run that command
!pip uninstall -y tensorflow
!pip install tensorflow-gpu==1.13.1

@deflorator1980
Copy link

In my case it helped to use
pip install intel-tensorflow
Instead or regular tensorflow

@fank996
Copy link

fank996 commented Jun 15, 2022

tensorflow.python.framework.errors_impl.InvalidArgumentError: Default AvgPoolingOp only supports NHWC on device type CPU [[{{node 0.3562700616991372/AvgPool}}]]

you can use conda install tensorflow-gpu ,not pip install。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants