RuntimeError: Couldn‘t open shared file mapping: <torch_16716_3565374679>, error code: <1455>

Training times error

RuntimeError: Couldn't open shared file mapping: <torch_16716_3565374679>, error code: <1455>

This may be because your graphics card is too old or the computing pressure is too heavy for your graphics card.

Just like multithreading on CUDA tensor, it cannot succeed. There are two methods to choose from:

1. Do not use multithreading. The num of the dataloader_ Set worker to zero.

2. Change to CPU sharing tensor. Ensure that your custom dataset dataset returns the CPU tensor.

  Method 1 is effective

Read More: