Skip to content

Commit be28da2

Browse files
v0.2.24
func_control_init accepts device
1 parent be2dd59 commit be28da2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "spotPython"
10-
version = "0.2.23"
10+
version = "0.2.24"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/utils/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from torch.utils.tensorboard import SummaryWriter
55

66

7-
def fun_control_init(task, tensorboard_path=None):
7+
def fun_control_init(task, tensorboard_path=None, device=None):
88
"""Initialize fun_control dictionary.
99
Args:
1010
None
@@ -63,7 +63,7 @@ def fun_control_init(task, tensorboard_path=None):
6363
"eval": None,
6464
"k_folds": None,
6565
"optimizer": None,
66-
"device": None,
66+
"device": device,
6767
"show_batch_interval": 1_000_000,
6868
"path": None,
6969
"task": task,

0 commit comments

Comments
 (0)