not numba/numbapro, but you can use cupy:

  
      gist.github.com
  
  
    https://gist.github.com/szagoruyko/dccce13465df1542621b728fcc15df53 239
cupy-pytorch-ptx.py
import torch
from cupy.cuda import function
from pynvrtc.compiler import Program
from collections import namedtuple

a = torch.randn(1,4,4).cuda()
b = torch.zeros(a.size()).cuda()

kernel = '''
extern "C"
This file has been truncated. show original