{"action":"created","issue":{"url":"https://api.github.com/repos/Maratyszcza/NNPACK/issues/9","repository_url":"https://api.github.com/repos/Maratyszcza/NNPACK","labels_url":"https://api.github.com/repos/Maratyszcza/NNPACK/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Maratyszcza/NNPACK/issues/9/comments","events_url":"https://api.github.com/repos/Maratyszcza/NNPACK/issues/9/events","html_url":"https://github.com/Maratyszcza/NNPACK/issues/9","id":144031947,"number":9,"title":"How is caffe timed?","user":{"login":"ppwwyyxx","id":1381301,"avatar_url":"https://avatars.githubusercontent.com/u/1381301?v=3","gravatar_id":"","url":"https://api.github.com/users/ppwwyyxx","html_url":"https://github.com/ppwwyyxx","followers_url":"https://api.github.com/users/ppwwyyxx/followers","following_url":"https://api.github.com/users/ppwwyyxx/following{/other_user}","gists_url":"https://api.github.com/users/ppwwyyxx/gists{/gist_id}","starred_url":"https://api.github.com/users/ppwwyyxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppwwyyxx/subscriptions","organizations_url":"https://api.github.com/users/ppwwyyxx/orgs","repos_url":"https://api.github.com/users/ppwwyyxx/repos","events_url":"https://api.github.com/users/ppwwyyxx/events{/privacy}","received_events_url":"https://api.github.com/users/ppwwyyxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-28T17:26:26Z","updated_at":"2016-03-28T17:39:59Z","closed_at":null,"body":"Could you tell us how the caffe timing in your readme is obtained?\r\nSpecifically, is it MKL/OpenBLAS caffe? what is the command? Batch size is 64 right?\r\n\r\nI'm asking because I saw a much worse timing on a broadwell 6core i7 CPU, with caffe+OpenBLAS.\r\nThanks."},"comment":{"url":"https://api.github.com/repos/Maratyszcza/NNPACK/issues/comments/202501603","html_url":"https://github.com/Maratyszcza/NNPACK/issues/9#issuecomment-202501603","issue_url":"https://api.github.com/repos/Maratyszcza/NNPACK/issues/9","id":202501603,"user":{"login":"Maratyszcza","id":1093985,"avatar_url":"https://avatars.githubusercontent.com/u/1093985?v=3","gravatar_id":"","url":"https://api.github.com/users/Maratyszcza","html_url":"https://github.com/Maratyszcza","followers_url":"https://api.github.com/users/Maratyszcza/followers","following_url":"https://api.github.com/users/Maratyszcza/following{/other_user}","gists_url":"https://api.github.com/users/Maratyszcza/gists{/gist_id}","starred_url":"https://api.github.com/users/Maratyszcza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maratyszcza/subscriptions","organizations_url":"https://api.github.com/users/Maratyszcza/orgs","repos_url":"https://api.github.com/users/Maratyszcza/repos","events_url":"https://api.github.com/users/Maratyszcza/events{/privacy}","received_events_url":"https://api.github.com/users/Maratyszcza/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T17:39:59Z","updated_at":"2016-03-28T17:39:59Z","body":"It is benchmarked on `cpu` branch of [https://github.com/soumith/convnet-benchmarks/tree/cpu](convent-benchmarks), with some modifications:\r\n\r\n1. We use Caffe+OpenBLAS as a reference\r\n2. Batch size is 64 for VGG-A and 128 for AlexNet & OverFeat. It is important that you use protobufs from `convnet-benchmarks`: specifications from other sources (e.g. in Caffe itself) can use different image sizes and numbers of channels in hidden layers.\r\n3. Use [caffe-nnpack](https://github.com/Maratyszcza/caffe-nnpack) to integrate NNPACK into Caffe. As `caffe-nnpack` is currently incomplete, and doesn't implement backward pass, you'd need to remove [this line](https://github.com/Maratyszcza/caffe-nnpack/blob/NNPACK/src/caffe/layers/nnpack_convolution_layer.cpp#L178), so that `caffe-nnpack` doesn't abort on backward pass.\r\n4. Next, you need to modify prototxt with models to make some layers use NNPACK. Inside `conv_param` specify `engine: NNPACK` to make the layer compute through NNPACK."}}