Read torch module file to pytorch

Hi, I wonder if there is any utility that I can load from a well-written torch file which defines a nn module and make it work in pytorch so that it can be used in autograd. Or the only way is to re-implemented it in pytorch?


No such tool exist unfortunately, you will have to rewrite your module in pytorch.