boxx icon indicating copy to clipboard operation
boxx copied to clipboard

I expect to start the process with torch spawn method and import boxx

Open yanziwei opened this issue 2 years ago • 1 comments

I minimally reproduced the startup process:

import torch
from boxx import *

mp = torch.multiprocessing.get_start_method(
            allow_none=True)
print(mp)

I expect to get None or spawn The actual got the fork

Background:

self.sampler = DataLoader.Sampler()
mp_start_method = torch.multiprocessing.get_start_method(
            allow_none=True)
if mp_start_method is None:
            torch.multiprocessing.set_start_method('spawn')

I expect CUDA tensors to be shared between different processes.

yanziwei avatar Mar 20 '22 08:03 yanziwei

神奇的 bug, 我毫无头绪 🤣

DIYer22 avatar Mar 20 '22 13:03 DIYer22