The error message is simply:
OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed
I have created a repo for it:
https://github.com/leowalkling/pytorch_register_op_minimal 2
I’m using scikit-build to easily generate a solution file but the compilation flags are taken from torch.utils.cpp_extension.