Skip to content

Commit b6c104b

Browse files
0.10.58
fun_control_init() accepts arguments: data=None, data_dir="./data", data_module=None, and data_set=None.
1 parent d4d344f commit b6c104b

2 files changed

Lines changed: 18 additions & 5 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.10.57"
10+
version = "0.10.58"
1111
authors = [
1212
{ name="T. Bartz-Beielstein", email="tbb@bartzundbartz.de" }
1313
]

src/spotPython/utils/init.py

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ def fun_control_init(
1515
TENSORBOARD_CLEAN=False,
1616
SUMMARY_WRITER=True,
1717
accelerator="auto",
18+
data=None,
19+
data_dir="./data",
20+
data_module=None,
21+
data_set=None,
1822
design=None,
1923
device=None,
2024
devices=1,
@@ -52,6 +56,15 @@ def fun_control_init(
5256
acceleration (str):
5357
The accelerator to be used by the Lighting Trainer.
5458
It can be either "auto", "dp", "ddp", "ddp2", "ddp_spawn", "ddp_cpu", "gpu", "tpu".
59+
Default is "auto".
60+
data (object):
61+
The data object. Default is None.
62+
data_dir (str):
63+
The directory to save the data. Default is "./data".
64+
data_module (object):
65+
The data module object. Default is None.
66+
data_set (object):
67+
The data set object. Default is None.
5568
device (str):
5669
The device to use for the training. It can be either "cpu", "mps", or "cuda".
5770
devices (str or int):
@@ -237,10 +250,10 @@ def fun_control_init(
237250
"_L_out": _L_out,
238251
"accelerator": accelerator,
239252
"counter": 0,
240-
"data": None,
241-
"data_dir": "./data",
242-
"data_module": None,
243-
"data_set": None,
253+
"data": data,
254+
"data_dir": data_dir,
255+
"data_module": data_module,
256+
"data_set": data_set,
244257
"design": design,
245258
"device": device,
246259
"devices": devices,

0 commit comments

Comments
 (0)