Skip to content

File "SRN_modules.py", line 65, in forward return x + self.pos_table[:, :x.size(1)].clone().detach() RuntimeError: The size of tensor a (320) must match the size of tensor b (256) at non-singleton dimension 1 #14

@wuxiaolianggit

Description

@wuxiaolianggit

您好,大神,很感谢您的开源代码,非常棒,我有一个问题想问一下,n_position对应的维度是视觉特征提取后的w(宽度)吗?但是宽度是变化的,这样很容易报错了?大神我的理解对吗?

File "SRN_modules.py", line 65, in forward return x + self.pos_table[:, :x.size(1)].clone().detach() RuntimeError: The size of tensor a (320) must match the size of tensor b (256) at non-singleton dimension 1

@chenjun2hao

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