0

I reviewed DQN implementation code (https://github.com/devsisters/DQN-tensorflow) and found out this code generate CNN network with NCHW format when using GPU, NHWC otherwise.

I wonder whether this is mendatory... I mean, is it ok to generate CNN network with NHWC format even if I used GPU?

user3595632
  • 5,380
  • 10
  • 55
  • 111

1 Answers1

0

It might be ok if you don't care much about performance. In general, on GPU, NCHW is faster.

Why do you want specifically use NHWC on GPU ? You can convert between them, see Convert between NHWC and NCHW in TensorFlow

user2286991
  • 41
  • 1
  • 4