Skip to content

Commit

Permalink
correctly set gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
wsad1 committed Sep 3, 2024
1 parent c742861 commit 35f891a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/pytorch_tabular_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def train_tabular_model() -> float:
auto_lr_find=False,
batch_size=args.batch_size,
max_epochs=args.epochs,
accelerator=str(device),
accelerator='gpu' if device.type == 'cuda' else 'cpu',
)

optimizer_config = OptimizerConfig()
Expand Down

0 comments on commit 35f891a

Please sign in to comment.