Solved by googlebot in post #2 
              
              
                seems that you’re not registering the operator: 
static auto registry =
torch::RegisterOperators().op("myops::SpikeFunction", &SpikeFunction);