Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不理解这里的架构,是有问题吗 #795

Open
1245179435 opened this issue Mar 9, 2024 · 0 comments
Open

不理解这里的架构,是有问题吗 #795

1245179435 opened this issue Mar 9, 2024 · 0 comments

Comments

@1245179435
Copy link

def forward(self, x):
H, W = self.input_resolution
B, L, C = x.shape
assert L == H * W, "input feature has wrong size"
shortcut = x
x = self.norm1(x)
x = x.view(B, H, W, C)

这里传入的数据是一个4维度的,为什么是blc三个维度呢,请问是少了合并hw这步吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant