SNN-Toolbox adapter sets SLURM environment
Opened this issue · 0 comments
mantier commented
Hi,
I am trying to tune an ANN->SNN with a KB device. The example snn_toolbox/examples/mnist_keras_loihi.py
tried to run a SLURM session, even though I removed lines 26 os.environ['SLURM'] = '1'
and 27 os.environ['PYTHONUNBUFFERED'] = '1'
.
Further inspection revealed that models/nxsdk_modules_ncl/snntoolbox/nx_backend.py
also sets the SLURM environment in line 71 os.environ['SLURM'] = '1'
.
Removing the line lead to successful execution. I thought it might be desired behavior that the environment will be set at top level of the program; maybe you want to remove that line in the repo?