pyNNsMD.src package¶
Submodules¶
pyNNsMD.src.device module¶
Sets the devices for training scripts.
-
pyNNsMD.src.device.
set_gpu
(gpu_ids_list)[source]¶ Set the visible devices from a list of GPUs. Used to assign a process to a separate GPU.
Also very important is to restrict memeory growth since a single tensorfow process will allocate almost all GPU memory, so two fits can not run on same GPU.
- Parameters
gpu_ids_list (list) – Device list.
- Returns
None.
pyNNsMD.src.fit module¶
-
pyNNsMD.src.fit.
fit_model_by_script
(i, fit_script, g, filepath, m, proc_async)[source]¶ Run the training script in subprocess.