Skip to content

error in running imagenet_example_cw.py #67

@amirhamidihd

Description

@amirhamidihd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions