I think you should try to isolate this error. I personally don’t know how to reproduce this easily because of the import hiddenlayer dependency.
I mean: write an almost-dependency-free script that runs correctly on torch 1.1.0 and throws an error on torch 1.3.1. The script should only use very common libraries, like torch or numpy.