Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to switch NHWC to NCHW #56

Open
PinkPanther-ny opened this issue Apr 15, 2021 · 3 comments
Open

How to switch NHWC to NCHW #56

PinkPanther-ny opened this issue Apr 15, 2021 · 3 comments

Comments

@PinkPanther-ny
Copy link

I keep getting this issue and have no progress at all, please help. I've already done a lot of searching on google, Tried reshape the 'x' in model.py predict().
The Conv2D op currently only supports the NHWC tensor format on the CPU. The op was given the format: NCHW

@jooskesters
Copy link

This is probably because you have the 'wrong' version of tensorflow for this project. For me this worked with tf 2.2.0. Whenever I went higher e.g. 2.4.0, I got the same error as you described.

@Cyazd
Copy link

Cyazd commented Apr 12, 2022

TF2.2.0 didn't solve the issue for me. However TF1.6.0 did. All necessary packages are indicated in the requirements.txt files. Just pip install it in a new environment and it should work.

@jooskesters
Copy link

jooskesters commented Apr 12, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants