It seems that I found the problem that causes the error of “invalid combination of arguments”.
Yesterday I used the model trained on 0.1.9 version of pytorch, and loaded it to cpu using the latest version of 0.1.11. The error appeared.
Today I retrained the model using the latest version of 0.1.11 and loaded also using the latest version. Everything works.
So I guess that there are inconsistencies between different versions of pytorch models.