we have not tried yet, it will depend on how complex the compilation process is and how many dependencies the package has. Definitely on our radar since in my research group most of my PhD students have moved to pytorch now.
do you know if there is any effort to include support for pytorch in opencv? That might be the easiest path.