{"blog_url":"https://jsapachehtml.hatenablog.com/","version":"1.0","title":"pytorch\u3067\u30a8\u30e9\u30fc\uff08Leaf variable was used in an inplace operation\uff09","categories":["pytorch","machine learning","python"],"url":"https://jsapachehtml.hatenablog.com/entry/2018/06/24/234955","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjsapachehtml.hatenablog.com%2Fentry%2F2018%2F06%2F24%2F234955\" title=\"pytorch\u3067\u30a8\u30e9\u30fc\uff08Leaf variable was used in an inplace operation\uff09 - MEMOcho-\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"y-kamiya","blog_title":"MEMOcho-","published":"2018-06-24 23:49:55","description":"\u30bf\u30a4\u30c8\u30eb\u306b\u66f8\u3044\u305f\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u308f\u304b\u3063\u305f\u3053\u3068\u3092\u30e1\u30e2 \u3068\u308a\u3042\u3048\u305a\u89e3\u6c7a\u306b\u6700\u3082\u6709\u7528\u3060\u3063\u305f\u60c5\u5831\u306f\u3053\u308c Leaf variable has been moved into the graph interior - autograd - PyTorch Forums \u751f\u6210\u3057\u305ftensor\u306e\u8981\u7d20\u3092\u76f4\u306b\u66f8\u304d\u63db\u3048\u308b\u51e6\u7406\u3092\u3057\u305f\u4e0a\u3067\u3001backward\u3092\u884c\u3046\u3068\u4e0a\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3063\u307d\u3044\u3002\u81ea\u5206\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3082one-hot\u30d9\u30af\u30c8\u30eb\u306e\u5f62\u306e\u5165\u529b\u3092\u4f5c\u308b\u969b\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u3092\u3084\u3063\u3066\u3044\u305f\u3002 input = torch.zeros([NUM_STATE], requires_grad=True) input[state] = 1 \u3053\u2026","width":"100%","provider_url":"https://hatena.blog","height":"190","author_url":"https://blog.hatena.ne.jp/y-kamiya/","image_url":null,"type":"rich"}