Oh, I have solved this problem. This problem is certainly because of the coding. The t7 file is encoded in ascii, differing from the load_lua decoder. Just load the t7 file in torch and save it again with default encoder, the problem has been solved.