Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Nov 26, 2024
1 parent 56e7069 commit ef4c163
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/safeds/ml/nn/test_cnn_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

import pytest
import torch
from torch.types import Device

from safeds._config import _get_device
from safeds.data.image.containers import ImageList
from safeds.data.image.containers._single_size_image_list import _SingleSizeImageList
Expand All @@ -27,8 +29,6 @@
MaxPooling2DLayer,
)
from safeds.ml.nn.typing import VariableImageSize
from torch.types import Device

from tests.helpers import configure_test_with_device, device_cpu, device_cuda, images_all, resolve_resource_path

if TYPE_CHECKING:
Expand Down
4 changes: 2 additions & 2 deletions tests/safeds/ml/nn/test_dropout_workflow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import pytest
from torch.types import Device

from safeds._config import _get_device
from safeds.data.tabular.containers import Table
from safeds.ml.nn import (
Expand All @@ -11,8 +13,6 @@
DropoutLayer,
ForwardLayer,
)
from torch.types import Device

from tests.helpers import configure_test_with_device, get_devices, get_devices_ids


Expand Down
4 changes: 2 additions & 2 deletions tests/safeds/ml/nn/test_forward_workflow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import pytest
from torch.types import Device

from safeds._config import _get_device
from safeds.data.tabular.containers import Table
from safeds.data.tabular.transformation import StandardScaler
Expand All @@ -11,8 +13,6 @@
from safeds.ml.nn.layers import (
ForwardLayer,
)
from torch.types import Device

from tests.helpers import configure_test_with_device, get_devices, get_devices_ids, resolve_resource_path


Expand Down
4 changes: 2 additions & 2 deletions tests/safeds/ml/nn/test_lstm_workflow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import pytest
from torch.types import Device

from safeds._config import _get_device
from safeds.data.tabular.containers import Table
from safeds.data.tabular.transformation import RangeScaler
Expand All @@ -13,8 +15,6 @@
GRULayer,
LSTMLayer,
)
from torch.types import Device

from tests.helpers import configure_test_with_device, get_devices, get_devices_ids, resolve_resource_path


Expand Down
4 changes: 2 additions & 2 deletions tests/safeds/ml/nn/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import re

import pytest
from torch.types import Device

from safeds.data.image.typing import ImageSize
from safeds.data.labeled.containers import TabularDataset
from safeds.data.tabular.containers import Table
Expand Down Expand Up @@ -37,8 +39,6 @@
MaxPooling2DLayer,
)
from safeds.ml.nn.typing import VariableImageSize
from torch.types import Device

from tests.helpers import configure_test_with_device, get_devices, get_devices_ids


Expand Down

0 comments on commit ef4c163

Please sign in to comment.