@thnkim it is because numpy’s RNG is not forkable.
Instead, add this line to the top of your main script (and you need to use python 3)
import torch
import torch.multiprocessing as mp
mp.set_start_method('spawn')
@thnkim it is because numpy’s RNG is not forkable.
Instead, add this line to the top of your main script (and you need to use python 3)
import torch
import torch.multiprocessing as mp
mp.set_start_method('spawn')