Getting errors w/ the multiprocessing in DataGenerator for windows builds on Python <3.8, and for Mac + Python >= 3.8.
AttributeError: Can't pickle local object 'DataGenerator.__iter__.<locals>.get_data'
Think it might be due to the switch from default process start method of "fork" to "spawn" modes, see here. But that doesn't explain the windows issues...
Getting errors w/ the multiprocessing in
DataGenerator
for windows builds on Python <3.8, and for Mac + Python >= 3.8.Think it might be due to the switch from default process start method of "fork" to "spawn" modes, see here. But that doesn't explain the windows issues...
Example windows test failure
Example mac test failure
Tried doing
multiprocessing.set_start_method("fork")
for mac + python 3.8, but then just gotRuntimeError: context has already been set
(example)...