Skip to content

The size of tensor does not match #3

@gefeiZ

Description

@gefeiZ

HI Yang,
I keep getting this errors reported when using the sample dataset to run step2.

inputs = inputs * torch.exp(seqcons)
RuntimeError: The size of tensor a (24) must match the size of tensor b (98304) at non-singleton dimension 2

I check the data['seq'].shape, data['seqcons'].shape, data['signal'].shape
It shows
torch.Size([2, 4, 24]) torch.Size([2, 1, 98304]) torch.Size([2, 1, 768])
I'm just getting into deep learning, so I just follow your instruction steps and I don't really understand what's going on.
Could you please help with this issue? Thanks a lot.

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