enas icon indicating copy to clipboard operation
enas copied to clipboard

NCHW does not support when tring to run cifar10_micro_search

Open stanleywang88 opened this issue 7 years ago • 5 comments

HI Guys: when tring to run cifar10_micro_search, I always met the below error, I tried to switch to official tensorflow docker image, which should contain all op support, but it keeps same result. Anyone can tell me how to do or share me the correct running env?
Thanks! Best wishes! Stanley

nvalidArgumentError (see above for traceback): Default AvgPoolingOp only supports NHWC on device type CPU [[Node: child/layer_0/cell_0/x/avg_pool/average_pooling2d/AvgPool = AvgPoolT=DT_FLOAT, data_format="NCHW", ksize=[1, 1, 3, 3], padding="SAME", strides=[1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

stanleywang88 avatar Aug 07 '18 08:08 stanleywang88

Same errors. Anyone can help?

hex0102 avatar Sep 19 '18 16:09 hex0102

My cuda is 9.0. I changed tf.device("/device:GPU:0") from CPU and I used 'NCHW'. Then, uninstall and reinstall the following packages worked to me.

  • tensorflow==1.8.0
  • tensorflow-gpu==1.8.0 -tensorflow-tensorboard==1.5.1

S-phyu avatar Oct 09 '18 06:10 S-phyu

same error happens bellow:

tensorflow.python.framework.errors_impl.InvalidArgumentError: Default AvgPoolingOp only supports NHWC on device type CPU [[Node: child/layer_0/cell_0/x/avg_pool/average_pooling2d/AvgPool = AvgPoolT=DT_FLOAT, data_format="NCHW", ksize=[1, 1, 3, 3], padding="SAME", strides=[1, 1, 1, 1], _device="/job:localhost/replica:0/task:0/device:CPU:0"]]

environment: tensorflow: 1.8 python: 3.6.5

DLYLL avatar Feb 21 '19 08:02 DLYLL

I have solved this problem with the environment: tensorflow-gpu==1.13.1 python ==2.7

Zhang-haotian avatar May 23 '20 08:05 Zhang-haotian

I have tried with different tensorflow version, and set allow_soft_placement=False, however still get stuck here.

  • tensorflow-gpu==1.13.1, 1.14.0, 1.15.0
  • python == 3.6.12
  • cuda = 10.0

Any idea and suggestion would be welcome!

JiaojiaoYe1994 avatar Jan 28 '21 12:01 JiaojiaoYe1994