Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Dref360 committed Jun 6, 2024
1 parent 466fe61 commit 02b52cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion baal/active/heuristics/heuristics_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def predict_on_dataset(
verbose=True,
):
return (
super().predict_on_dataset(dataset, iterations, half, verbose).reshape([-1]) # type: ignore
super()
.predict_on_dataset(dataset, iterations, half, verbose)
.reshape([-1]) # type: ignore
)

def predict_on_batch(self, data, iterations=1):
Expand Down
4 changes: 2 additions & 2 deletions baal/experiments/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

TRANSFORMERS_AVAILABLE = True
except ImportError:
BaalTransformersTrainer = Any # type: ignore
TransformersAdapter = Any # type: ignore
BaalTransformersTrainer = None # type: ignore
TransformersAdapter = None # type: ignore
TRANSFORMERS_AVAILABLE = False

log = structlog.get_logger(__name__)
Expand Down

0 comments on commit 02b52cb

Please sign in to comment.