Skip to content

报错hidden = F.relu(torch.matmul(x_, w1) + b1)维度计算不正确 #10

@zhiniao07

Description

@zhiniao07

File "/home/nkw/code/hmp2g-master/ALGORITHM/common/hyper_net.py", line 49, in forward
hidden = F.relu(torch.matmul(x_, w1) + b1) # b * t, 1, emb
RuntimeError: Expected size for first two dimensions of batch2 tensor to be: [10, 360] but got: [10, 264].
似乎是报错计算出的维度不正确,请问如何解决?

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