Skip to content

Commit

Permalink
move torch import in tests for flavors
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbader committed Feb 16, 2022
1 parent 31db666 commit a6ce1d2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from unittest.mock import patch

import pandas as pd
import torch

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

try:
import torch

from darts.models.forecasting.rnn_model import RNNModel

TORCH_AVAILABLE = True
Expand Down

0 comments on commit a6ce1d2

Please sign in to comment.