Skip to content

Invalid argument 2: 3D or 4D input tensor expected but got: [32 x 784] #39

Description

@JeffreyYH

Hi Hugh, thanks for this nice software, when I run the example code of MNIST, it shows the following error,

Connected to pydev debugger (build 171.4694.67)
$ Invalid argument 2: 3D or 4D input tensor expected but got: [32 x 784] at /tmp/luarocks_nn-scm-1-8028/nn/lib/THNN/generic/SpatialConvolutionMM.c:33

How to deal with it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions