Zdeeno:

OSError: [Errno 12] Cannot allocate memory



If the cannot allocate memory issues still persist, you might try allocating additional swap space on your machine (see https://github.com/pytorch/pytorch/issues/4387 8 for more details).