arogozhnikov:

Ok, probably it is a way to go, where do I find an example with instantiating function?


Found an example here:

  
      
      GitHub
  
  
    

jcjohnson/pytorch-examples 256

pytorch-examples - Simple examples to introduce PyTorch