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

How is the part about ‘positional embeding’ in the source code implemented? #16

Open
Rfan77 opened this issue Apr 11, 2024 · 0 comments

Comments

@Rfan77
Copy link

Rfan77 commented Apr 11, 2024

Hello, I would like to ask how positional embedding is implemented in linevul. Considering that this is a transformer-based model, how can the information about positional embedding be implemented through code? For example, when only testing is performed, faced with this (18864,512) input, how to perform positional embedding, I did not see the code related to positional embedding in linevul_main.py

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