Solved by chetan06 in post #6 
              
              
                Actually I have used other language and the same is followed there too so I thought that way. But later when I saw the torch github page , that also confirmed that file_name should be omitted. In case the confusion persists you can once try it yourself