Skip to content

Commit

Permalink
Remove torch dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
michalk8 committed Feb 7, 2024
1 parent 12e91cf commit cfd4fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions scvelo/tools/_core.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from abc import abstractmethod
from typing import NamedTuple

import torch

from anndata import AnnData


Expand All @@ -13,8 +11,6 @@ class _REGISTRY_KEYS_NT(NamedTuple):

REGISTRY_KEYS = _REGISTRY_KEYS_NT()

DEFAULT_ACTIVATION_FUNCTION = torch.nn.Softplus()


class BaseInference:
"""Base Inference class for all velocity methods."""
Expand Down
4 changes: 3 additions & 1 deletion scvelo/tools/_vi_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
from scvi.module.base import auto_move_data, BaseModuleClass, LossOutput
from scvi.nn import Encoder, FCLayers

from ._core import DEFAULT_ACTIVATION_FUNCTION, REGISTRY_KEYS
from ._core import REGISTRY_KEYS

DEFAULT_ACTIVATION_FUNCTION = torch.nn.Softplus()

torch.backends.cudnn.benchmark = True

Expand Down

0 comments on commit cfd4fa0

Please sign in to comment.