convert to cudnn dim ordering