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

outlook forward pass example #21

Open
ofTarradiddle opened this issue Jul 2, 2021 · 1 comment
Open

outlook forward pass example #21

ofTarradiddle opened this issue Jul 2, 2021 · 1 comment

Comments

@ofTarradiddle
Copy link

ofTarradiddle commented Jul 2, 2021

Would you be able to write an example with dummy data for the outlookattention module's forward pass? I am trying to practice, and understand, each step that is taken but I cannot get a reproduction of the forward pass given the code in models/volo.py. Any help would be much appreciated.

Something like this but for outlook attention instead of a transformer.
tm = nn.Transformer(nhead = 16, num_encoder_layers = 12)
src = torch.rand((10, 32, 512))
tgt = torch.rand((20, 32, 512))
tm(src, tgt)

@yuanli2333
Copy link
Collaborator

We will update this part of codes soon.

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