Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
MCG-NJU
/
PixNerd
like
8
Running
on
Zero
App
Files
Files
Community
2
Fetching metadata from the HF Docker repository...
main
PixNerd
/
src
/
models
/
layers
/
attention_op.py
wangshuai6
init
56238f0
24 days ago
raw
Copy download link
history
blame
contribute
delete
Safe
113 Bytes
import
torch
import
torch.nn
as
nn
from
torch.nn.functional
import
scaled_dot_product_attention
as
attention