Skip to content

Commit

Permalink
refactor missed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lannelin committed May 5, 2024
1 parent fbc8f2f commit 9820f58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pl_bolts/callbacks/knn_online.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import torch
from lightning import Callback, LightningModule, Trainer
from lightning.accelerators import Accelerator
from lightning.pytorch.accelerators import Accelerator
from pl_bolts.utils.stability import under_review
from torch import Tensor
from torch.nn import functional as F # noqa: N812
Expand Down
5 changes: 1 addition & 4 deletions src/pl_bolts/utils/_dependency.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
import os
from typing import Any, Callable

from lightning.fabric.utilities.core.imports import (
ModuleAvailableCache,
RequirementCache,
)
from lightning_utilities.core.imports import ModuleAvailableCache, RequirementCache


# ToDo: replace with utils wrapper after 0.10 is released
Expand Down

0 comments on commit 9820f58

Please sign in to comment.