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

error in running imagenet_example_cw.py #67

Open
amirhamidihd opened this issue Dec 8, 2020 · 1 comment
Open

error in running imagenet_example_cw.py #67

amirhamidihd opened this issue Dec 8, 2020 · 1 comment

Comments

@amirhamidihd
Copy link

I want to run imagene_example_cw.py, I haven't changed any thing in the source code, but I see this error:
AssertionError: The loss.shape should be (1L,), but the current loss.shape is (-1L, 1L). Maybe that you should call fluid.layers.mean to process the current loss.

what should I do?
Thanks.

@helen88
Copy link

helen88 commented Dec 17, 2020

Hi, @amirhamidihd
this problem caused, because your numpy version >=1.17, please use lower version, 1.16 and lower is ok. please try.
image
image

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

2 participants