Spaces:
Runtime error
Runtime error
Update transformer.py
Browse files- transformer.py +1 -1
transformer.py
CHANGED
|
@@ -12,7 +12,7 @@ from torch.nn.modules.transformer import (
|
|
| 12 |
|
| 13 |
from dataset import Batched, EncodedBatch
|
| 14 |
from vocab import BOS_ID, EOS_ID, PAD_ID
|
| 15 |
-
import
|
| 16 |
|
| 17 |
class PositionalEncoding(nn.Module):
|
| 18 |
def __init__(self, dropout, dim, max_len=5000):
|
|
|
|
| 12 |
|
| 13 |
from dataset import Batched, EncodedBatch
|
| 14 |
from vocab import BOS_ID, EOS_ID, PAD_ID
|
| 15 |
+
import helpers
|
| 16 |
|
| 17 |
class PositionalEncoding(nn.Module):
|
| 18 |
def __init__(self, dropout, dim, max_len=5000):
|