-
Notifications
You must be signed in to change notification settings - Fork 5
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
有无pytorch版本? #2
Comments
可以参考pytorch与paddle算子映射表对代码进行修改。后面我如果时间的话会修改一下对应的torch的模型文件放上来 |
可以参考代码改动说明中的 |
PaddlePaddle-Swin-Transformer-V2/swin_transformer.py Lines 344 to 347 in 42eb8b8
这四行代码计算了qi和kj之间的余弦相似度,最终的attn范围已经是[-1,1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如题
The text was updated successfully, but these errors were encountered: