I am trying to revive an old software and found this import: torch._thnn with only one method: type2backend.
It appears to be old PyTorch module, but I cannot find how to replace it.
Any idea how to rewrite this to modern PyTorch?