Hello,
Running the following code:
import torch
import torch.nn.functional as F
theta = torch.Tensor([[[1, 1, 1], [1, 1, 1]]]).cuda()
F.affine_grid(theta, torch.Size((1, 3, 2, 2)))
gives me the error:
File “/home/toni/PycharmProjects/testingGPU/venv/lib/python2.7/site-packages/torch/nn/functional.py”, line 2799, in affine_grid
return torch.affine_grid_generator(theta, size, align_corners)
RuntimeError: cublas runtime error : the GPU program failed to execute at /pytorch/aten/src/THC/THCBlas.cu:368
I have checked all the compatibility issues and I believe there is the right match between:
Python 2.7 – Torch 1.4.0 – Torchvision 0.5.0 – CUDA 10.1 – Ubuntu 18.04 (and I would like to keep using python2.7 for the current project)
I am trying to run it on RTX 3060, driver version 515.48.07
I’ve looked on many repositories and forums, but I could not find a solution (while keeping the PyTorch recommended configuration with torch 1.4.0, CUDA 10.1)