{"action":"closed","issue":{"url":"https://api.github.com/repos/clab/dynet/issues/345","repository_url":"https://api.github.com/repos/clab/dynet","labels_url":"https://api.github.com/repos/clab/dynet/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/clab/dynet/issues/345/comments","events_url":"https://api.github.com/repos/clab/dynet/issues/345/events","html_url":"https://github.com/clab/dynet/issues/345","id":211554573,"number":345,"title":"Simple MLP breaks","user":{"login":"botev","id":1889878,"avatar_url":"https://avatars1.githubusercontent.com/u/1889878?v=3","gravatar_id":"","url":"https://api.github.com/users/botev","html_url":"https://github.com/botev","followers_url":"https://api.github.com/users/botev/followers","following_url":"https://api.github.com/users/botev/following{/other_user}","gists_url":"https://api.github.com/users/botev/gists{/gist_id}","starred_url":"https://api.github.com/users/botev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/botev/subscriptions","organizations_url":"https://api.github.com/users/botev/orgs","repos_url":"https://api.github.com/users/botev/repos","events_url":"https://api.github.com/users/botev/events{/privacy}","received_events_url":"https://api.github.com/users/botev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-03-02T23:51:48Z","updated_at":"2017-03-03T17:01:32Z","closed_at":"2017-03-03T17:01:32Z","body":"Sorry, as this might be easy question, but I'm quite new to DyNet. I tried the following:\r\n```\r\n    w = model.parameters_from_numpy(xavier_normal_init(shape))\r\n    b = model.parameters_from_numpy(constant_init((shape[1], )))\r\n    w = dy.parameter(w)\r\n    b = dy.parameter(b)\r\n    f = nonlinearity_from_string(nonlinearity)\r\n    return f(x_in * w + b)\r\n```\r\nand it gives me:\r\n```\r\nterminate called after throwing an instance of 'std::invalid_argument'\r\n  what():  Mismatched input dimensions in Sum: [{64,64} {64}]\r\n```\r\nThis seem like a basic thing so can someone point me to what I'm doing wrong. The x_in is a matrix however."}}
{"actor":{"display_login":"neubig"}}