{"action":"created","issue":{"url":"https://api.github.com/repos/caffe2/caffe2/issues/468","repository_url":"https://api.github.com/repos/caffe2/caffe2","labels_url":"https://api.github.com/repos/caffe2/caffe2/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/caffe2/caffe2/issues/468/comments","events_url":"https://api.github.com/repos/caffe2/caffe2/issues/468/events","html_url":"https://github.com/caffe2/caffe2/issues/468","id":225476762,"number":468,"title":"Caffe Translator Error: Convolution Layer ","user":{"login":"milewis1","id":2982989,"avatar_url":"https://avatars1.githubusercontent.com/u/2982989?v=3","gravatar_id":"","url":"https://api.github.com/users/milewis1","html_url":"https://github.com/milewis1","followers_url":"https://api.github.com/users/milewis1/followers","following_url":"https://api.github.com/users/milewis1/following{/other_user}","gists_url":"https://api.github.com/users/milewis1/gists{/gist_id}","starred_url":"https://api.github.com/users/milewis1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milewis1/subscriptions","organizations_url":"https://api.github.com/users/milewis1/orgs","repos_url":"https://api.github.com/users/milewis1/repos","events_url":"https://api.github.com/users/milewis1/events{/privacy}","received_events_url":"https://api.github.com/users/milewis1/received_events","type":"User","site_admin":false},"labels":[{"id":612442525,"url":"https://api.github.com/repos/caffe2/caffe2/labels/translator","name":"translator","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-05-01T17:21:34Z","updated_at":"2017-07-11T20:56:23Z","closed_at":null,"body":"I have a Caffe model that I'm trying to translate into Caffe2. However, I'm running across the following error on the first operator:\r\n\r\nRuntimeError: [enforce fail at conv_op_impl.h:25] X.ndim() == filter.ndim(). 4 vs 1 Error from operator: \r\ninput: \"data\" input: \"conv1_w\" input: \"conv1_b\" output: \"conv1\" type: \"Conv\" arg { name: \"stride\" i: 2 } arg { name: \"pad\" i: 3 } arg { name: \"kernel\" i: 7 }\r\n\r\nThe original Caffe model start like this:\r\n\r\n`layer {\r\n  name: \"data\"\r\n  type: \"Input\"\r\n  top: \"data\"\r\n  input_param {\r\n    shape {\r\n      dim: 1\r\n      dim: 3\r\n      dim: 224\r\n      dim: 224\r\n    }\r\n  }\r\n}\r\nlayer {\r\n  name: \"conv1\"\r\n  type: \"Convolution\"\r\n  bottom: \"data\"\r\n  top: \"conv1\"\r\n  param {\r\n    lr_mult: 1\r\n    decay_mult: 1\r\n  }\r\n  param {\r\n    lr_mult: 2\r\n    decay_mult: 0\r\n  }\r\n  convolution_param {\r\n    num_output: 64\r\n    bias_term: true\r\n    pad: 3\r\n    kernel_size: 7\r\n    stride: 2\r\n  }\r\n}`\r\n\r\nMy input is a single color image whose shape going in is: [1, 3, 224, 224]. Has anyone tried to do something similar? \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/caffe2/caffe2/issues/comments/314569160","html_url":"https://github.com/caffe2/caffe2/issues/468#issuecomment-314569160","issue_url":"https://api.github.com/repos/caffe2/caffe2/issues/468","id":314569160,"user":{"login":"danielhauagge","id":1358818,"avatar_url":"https://avatars2.githubusercontent.com/u/1358818?v=3","gravatar_id":"","url":"https://api.github.com/users/danielhauagge","html_url":"https://github.com/danielhauagge","followers_url":"https://api.github.com/users/danielhauagge/followers","following_url":"https://api.github.com/users/danielhauagge/following{/other_user}","gists_url":"https://api.github.com/users/danielhauagge/gists{/gist_id}","starred_url":"https://api.github.com/users/danielhauagge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielhauagge/subscriptions","organizations_url":"https://api.github.com/users/danielhauagge/orgs","repos_url":"https://api.github.com/users/danielhauagge/repos","events_url":"https://api.github.com/users/danielhauagge/events{/privacy}","received_events_url":"https://api.github.com/users/danielhauagge/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T20:56:23Z","updated_at":"2017-07-11T20:56:23Z","body":"OK, tested and seems like the network works fine now."}}
{"actor":{"display_login":"danielhauagge"}}