Thanks for pinging and sorry for the late reply, as I thought I’ve already answered.
It seems that the previously posted code already raises the error when trying to torch.jit.trace the model (not only during the saving), while torch.jit.script seems to work.
Could you verify it and if so, post an issue on GitHub 6?