Skip to content

Commit

Permalink
Update VELOVI::train
Browse files Browse the repository at this point in the history
Remove `use_gpu` from DataSplitter.
  • Loading branch information
WeilerP committed Jun 8, 2023
1 parent 8aaa334 commit a7b7cf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scvelo/tools/_vi_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ def train(
lr: float = 1e-2,
weight_decay: float = 1e-2,
use_gpu: Optional[Union[str, int, bool]] = None,
accelerator: str = "auto",
devices: Union[int, List[int], str] = "auto",
train_size: float = 0.9,
validation_size: Optional[float] = None,
batch_size: int = 256,
Expand Down Expand Up @@ -179,7 +181,6 @@ def train(
train_size=train_size,
validation_size=validation_size,
batch_size=batch_size,
use_gpu=use_gpu,
)
training_plan = TrainingPlan(self.module, **plan_kwargs)

Expand Down

0 comments on commit a7b7cf7

Please sign in to comment.