Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

SNN-Toolbox adapter sets SLURM environment #13

Description

@mantier

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions