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

Confused about how DRA is implemented #11

Open
Skyorca opened this issue Jul 27, 2023 · 1 comment
Open

Confused about how DRA is implemented #11

Skyorca opened this issue Jul 27, 2023 · 1 comment

Comments

@Skyorca
Copy link

Skyorca commented Jul 27, 2023

Hello, I read your paper and code, but get confused about the implementation of dynamic transfer module.
According to your paper, the model parameters should be adaptive to each sample, but the code below sees that the model parameter is still shared by all samples:

dyres = self.conv_s1(out)*y[:,0] + self.conv_s2(out)*y[:,1] +
self.conv_s3(out)*y[:,2] + self.conv_s4(out)*y[:,3]
out = dyres + self.conv2(out)

Could you provide some explanations for more details? Thanks a lot.

Best Regards,
Orca

@liyunsheng13
Copy link
Owner

You are correct that all the parameters are shared across samples. But the dynamic coefficient (y in your equation) is dynamic for different samples. It means different samples have different combination from conv_s1 to conv_s4, thereby different residual.

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

2 participants