Hi everyone, I have an op implemented in cuda and I have embedded it into a model implemented in pytorch, which is like:
import my_cuda_op # I have compiled this cuda op
# in pytorch model forward function:
def forward(args):
# some pytorch implement code
layer1 = some_pytorch_implement(input)
...
layer_n = my_cuda_op.my_func(x) # here is the cuda op
...
return output
So what I want to do is translate the pytorch model with cuda op into relay IR. Which is: Pytorch → Relay IR ->…… Is there an example? Any suggestion is appreciated.