You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
The text was updated successfully, but these errors were encountered:
please explain the following code part of adding x and y
vasnet_model.py
class VASNet(nn.Module):
.....
def forward(self, x, seq_len):
The text was updated successfully, but these errors were encountered: