Solved by Vasiliy_Kuznetsov in post #2 
              
              
                hi @skurzhanskyi, I am able to run your example without issues on the nighly.  What version of PyTorch are you using?  Can you check if using a more recent version / a nightly build fixes your issue?