Riwei-HEU / MRL

7 stars 0 forks source link

NameError: name 'test_user_set' is not defined #1

Open mdinesh9 opened 5 days ago

mdinesh9 commented 5 days ago

As per traceback, this is coming from utils/evaluate.py

https://github.com/Riwei-HEU/MRL/blob/main/utils/evaluate.py#L100

Riwei-HEU commented 4 days ago

Hi, Dinesh M,

This issue is actually because the “multiprocessing” operation is different on Windows and Linux.

FYI, https://stackoverflow.com/questions/6596617/python-multiprocess-diff-between-windows-and-linux

On Windows, every variable from the parent process that needs to be accessed by the child has to be explicitly passed down or placed in shared memory. While on Linux, every child process could get a copy of the parent process's address space, including all global variables.

I tried to rewrite evaluate.py to make it work for Windows, but this was more difficult than I thought, compared to just switching to Linux to run the code...