So, if you’re interested this is what I have so far: https://github.com/lantiga/pytorch2c 475. (I think) I’m close, I’m working at serializing THStorage right now and probably there’s a number of other issues, but you can start to take a peek.
I’m not sure how profoundly things will have to be reworked with the upcoming changes in autograd, but it’s fun anyway.