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
I have replaced "tf.device("cpu"):" with "tf.device("/device:gpu:0"):" everywhere in the code, but it still is giving the error of "Default AvgPoolingOp only supports NHWC on device type CPU".
The code is still considering the machine as CPU instead of GPU.
Please tell the possible issues or solutions.
The text was updated successfully, but these errors were encountered:
I have replaced "tf.device("cpu"):" with "tf.device("/device:gpu:0"):" everywhere in the code, but it still is giving the error of "Default AvgPoolingOp only supports NHWC on device type CPU".
The code is still considering the machine as CPU instead of GPU.
Please tell the possible issues or solutions.
Hi, I meet the same problem with you.
I solved it with the following steps. (Maybe some of them are unnecessary.)
create python 2.7 environment
pip install tensorflow-gpu==1.4
change all the code of tf.device("/cpu:0") to tf.device("/gpu:0")
run with CUDA_VISIBLE_DEVICES=0 sh script/cifar10_micro_search.sh
Hi,
I have replaced "tf.device("cpu"):" with "tf.device("/device:gpu:0"):" everywhere in the code, but it still is giving the error of "Default AvgPoolingOp only supports NHWC on device type CPU".
The code is still considering the machine as CPU instead of GPU.
Please tell the possible issues or solutions.
The text was updated successfully, but these errors were encountered: