Skip to content

unable to open shared memory object in read-write mode #25

Open
@leon2milan

Description

I run binarize.py, it returns error:

Traceback (most recent call last):                                                                                          
  File "/home/jiangbingyu/miniconda3/envs/synta/lib/python3.7/multiprocessing/queues.py", line 236, in _feed                
    obj = _ForkingPickler.dumps(obj)                                                                                        
  File "/home/jiangbingyu/miniconda3/envs/synta/lib/python3.7/multiprocessing/reduction.py", line 51, in dumps              
    cls(buf, protocol).dump(obj)                                                                                            
  File "/home/jiangbingyu/miniconda3/envs/synta/lib/python3.7/site-packages/torch/multiprocessing/reductions.py", line 319, 
in reduce_storage                                                                                                           
    metadata = storage._share_filename_()                                                                                   
RuntimeError: unable to open shared memory object </torch_14375_33168349> in read-write mode  

I try num_workers>0, all get this error. And if I set num_workers=0, the program will hang .

so, how to deal with it?

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