fewshot-face-translation-GAN icon indicating copy to clipboard operation
fewshot-face-translation-GAN copied to clipboard

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

Open mumuyanyan opened this issue 5 years ago • 6 comments

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

mumuyanyan avatar Sep 09 '19 03:09 mumuyanyan

You need a proper GPU

gstark0 avatar Sep 09 '19 09:09 gstark0

@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

vaibhavch avatar Nov 22 '19 17:11 vaibhavch

@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.

murphye avatar Mar 12 '20 22:03 murphye

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

ibtehajali67 avatar Feb 04 '21 13:02 ibtehajali67

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

deflorator1980 avatar Apr 07 '21 14:04 deflorator1980

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。

fank996 avatar Jun 15 '22 11:06 fank996