Skip to content

Commit

Permalink
fix torch import for flavors (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbader authored Aug 7, 2022
1 parent 4e5f1e6 commit eb18103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion darts/tests/models/forecasting/test_transformer_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import tempfile

import pandas as pd
import torch.nn as nn

from darts import TimeSeries
from darts.logging import get_logger
Expand All @@ -12,6 +11,8 @@
logger = get_logger(__name__)

try:
import torch.nn as nn

from darts.models.components.transformer import (
CustomFeedForwardDecoderLayer,
CustomFeedForwardEncoderLayer,
Expand Down

0 comments on commit eb18103

Please sign in to comment.