fewshot-face-translation-GAN
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}}]]
tensorflow.python.framework.errors_impl.InvalidArgumentError: Default AvgPoolingOp only supports NHWC on device type CPU [[{{node 0.3562700616991372/AvgPool}}]]
You need a proper GPU
@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 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.
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
In my case it helped to use
pip install intel-tensorflow
Instead or regular tensorflow
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。