Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vshampor committed Oct 27, 2023
1 parent ed30f98 commit 4d689b6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/experimental/openvino/bert/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
from pathlib import Path
from typing import Any, Iterable

import datasets
import evaluate
import numpy as np
import openvino.runtime as ov
import torch
import transformers

import datasets
import nncf
from nncf.parameters import ModelType

Expand Down
2 changes: 1 addition & 1 deletion tests/torch/sparsity/movement/helpers/run_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import torch.nn
import torch.nn.functional as F
import torch.utils.data
from datasets import Dataset # pylint: disable=no-name-in-module
from transformers import AutoModelForAudioClassification
from transformers import AutoModelForImageClassification
from transformers import AutoModelForSequenceClassification
Expand All @@ -33,7 +34,6 @@
from transformers import SwinConfig
from transformers import Wav2Vec2Config

from datasets import Dataset # pylint: disable=no-name-in-module
from nncf import NNCFConfig
from nncf.experimental.torch.sparsity.movement.scheduler import MovementSchedulerParams
from nncf.torch.dynamic_graph.graph_tracer import ModelInputInfo
Expand Down
2 changes: 1 addition & 1 deletion tests/torch/sparsity/movement/helpers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

import numpy as np
import torch
from datasets import Dataset # pylint: disable=no-name-in-module
from transformers import TrainingArguments
from transformers.trainer import Trainer
from transformers.trainer_callback import TrainerCallback
from transformers.trainer_callback import TrainerControl
from transformers.trainer_callback import TrainerState
from transformers.trainer_utils import PREFIX_CHECKPOINT_DIR

from datasets import Dataset # pylint: disable=no-name-in-module
from nncf.api.compression import CompressionAlgorithmController
from nncf.common.compression import BaseCompressionAlgorithmController
from nncf.common.utils.tensorboard import prepare_for_tensorboard
Expand Down
2 changes: 1 addition & 1 deletion tests/torch/sparsity/movement/test_model_saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import pytest
import torch
from addict import Dict
from datasets import Dataset # pylint: disable=no-name-in-module
from onnx import numpy_helper
from openvino.runtime import Core
from openvino.runtime import serialize
Expand All @@ -28,7 +29,6 @@
from scipy.special import softmax
from transformers.trainer_utils import PREFIX_CHECKPOINT_DIR

from datasets import Dataset # pylint: disable=no-name-in-module
from nncf.torch import create_compressed_model
from nncf.torch.checkpoint_loading import load_state
from tests.torch.helpers import PTTensorListComparator
Expand Down
3 changes: 1 addition & 2 deletions tests/torch/sparsity/movement/training_scripts/run_glue.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
from pathlib import Path
from typing import Dict, List, Optional, Tuple

import datasets
import evaluate
import jstyleson
import numpy as np
from transformers.training_args import ParallelMode

import datasets

# isort: off
from nncf import NNCFConfig
from nncf.api.compression import CompressionAlgorithmController
Expand Down

0 comments on commit 4d689b6

Please sign in to comment.