Skip to content

Commit

Permalink
Optimize imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
cschaefer26 committed Jun 21, 2021
1 parent 5580ad4 commit 1e034a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dp/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

import torch
import torch.nn as nn
from torch.nn import TransformerEncoderLayer, LayerNorm, TransformerEncoder, ModuleList
from torch.nn import TransformerEncoderLayer, LayerNorm, TransformerEncoder

from dp.model.utils import get_dedup_tokens, _make_len_mask, _generate_square_subsequent_mask, PositionalEncoding
from dp.preprocessing.text import Preprocessor
from dp.utils.io import read_config


class ModelType(Enum):
Expand Down
1 change: 0 additions & 1 deletion run_prediction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import torch
from dp.phonemizer import Phonemizer

if __name__ == '__main__':
Expand Down

0 comments on commit 1e034a8

Please sign in to comment.