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

please explain the following code part of adding x and y #18

Open
VinACE opened this issue Sep 1, 2020 · 1 comment
Open

please explain the following code part of adding x and y #18

VinACE opened this issue Sep 1, 2020 · 1 comment

Comments

@VinACE
Copy link

VinACE commented Sep 1, 2020

please explain the following code part of adding x and y
vasnet_model.py
class VASNet(nn.Module):
.....
def forward(self, x, seq_len):

    m = x.shape[2] # Feature size

    # Place the video frames to the batch dimension to allow for batch arithm. operations.
    # Assumes input batch size = 1.
    x = x.view(-1, m)
    y, att_weights_ = self.att(x)

    y = y + x # -- what is the reason behind this step please explain,
@Pager07
Copy link

Pager07 commented Nov 4, 2020

residual link. It's in the diagram. Please read the paper

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