{"action":"opened","issue":{"url":"https://api.github.com/repos/gorgonia/gorgonia/issues/218","repository_url":"https://api.github.com/repos/gorgonia/gorgonia","labels_url":"https://api.github.com/repos/gorgonia/gorgonia/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/gorgonia/gorgonia/issues/218/comments","events_url":"https://api.github.com/repos/gorgonia/gorgonia/issues/218/events","html_url":"https://github.com/gorgonia/gorgonia/issues/218","id":339365190,"node_id":"MDU6SXNzdWUzMzkzNjUxOTA=","number":218,"title":"Node.Value() panics without any error infomation","user":{"login":"zltgo","id":22386625,"node_id":"MDQ6VXNlcjIyMzg2NjI1","avatar_url":"https://avatars3.githubusercontent.com/u/22386625?v=4","gravatar_id":"","url":"https://api.github.com/users/zltgo","html_url":"https://github.com/zltgo","followers_url":"https://api.github.com/users/zltgo/followers","following_url":"https://api.github.com/users/zltgo/following{/other_user}","gists_url":"https://api.github.com/users/zltgo/gists{/gist_id}","starred_url":"https://api.github.com/users/zltgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zltgo/subscriptions","organizations_url":"https://api.github.com/users/zltgo/orgs","repos_url":"https://api.github.com/users/zltgo/repos","events_url":"https://api.github.com/users/zltgo/events{/privacy}","received_events_url":"https://api.github.com/users/zltgo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T09:08:17Z","updated_at":"2018-07-09T09:08:17Z","closed_at":null,"author_association":"NONE","body":"Here is the example, it's the way I'm using it?\r\n\r\nfunc main() {\r\n\tg := NewGraph()\r\n\tx := NewTensor(g, Float32, 3, WithName(\"x\"), WithShape(2, 3, 3), WithInit(RangedFrom(0)))\r\n\ty := NewTensor(g, Float32, 3, WithName(\"y\"), WithShape(2, 3, 1), WithInit(RangedFrom(0)))\r\n\r\n\t// it will not panic when I change the shape of y.\r\n\t// y := NewTensor(g, Float32, 3, WithName(\"y\"), WithShape(2, 3, 2), WithInit(RangedFrom(0)))\r\n\r\n\tz, err := Concat(2, x, y)\r\n\tif err != nil {\r\n\t\tfmt.Println(errors.Wrap(err, \"Concat\"))\r\n\t\treturn\r\n\t}\r\n\r\n\tm := NewLispMachine(g, ExecuteFwdOnly())\r\n\tif err = m.RunAll(); err != nil {\r\n\t\tfmt.Println(errors.Wrap(err, \"run Concat\"))\r\n\t\treturn\r\n\t}\r\n\tfmt.Print(\"x: \\n\", x.Value())\r\n\tfmt.Print(\"y: \\n\", y.Value())\r\n\r\n\t//panic: runtime error: invalid memory address or nil pointer dereference\r\n\t//[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x885762]\r\n\tfmt.Print(\"Concat of x,y: \\n\", z.Value())\r\n}"}}
{"actor":{"display_login":"zltgo"}}