{"action":"created","issue":{"url":"https://api.github.com/repos/caffe2/caffe2/issues/2206","repository_url":"https://api.github.com/repos/caffe2/caffe2","labels_url":"https://api.github.com/repos/caffe2/caffe2/issues/2206/labels{/name}","comments_url":"https://api.github.com/repos/caffe2/caffe2/issues/2206/comments","events_url":"https://api.github.com/repos/caffe2/caffe2/issues/2206/events","html_url":"https://github.com/caffe2/caffe2/issues/2206","id":303665426,"number":2206,"title":"TensorCPU planar or interleaved?","user":{"login":"edubois","id":214761,"avatar_url":"https://avatars0.githubusercontent.com/u/214761?v=4","gravatar_id":"","url":"https://api.github.com/users/edubois","html_url":"https://github.com/edubois","followers_url":"https://api.github.com/users/edubois/followers","following_url":"https://api.github.com/users/edubois/following{/other_user}","gists_url":"https://api.github.com/users/edubois/gists{/gist_id}","starred_url":"https://api.github.com/users/edubois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edubois/subscriptions","organizations_url":"https://api.github.com/users/edubois/orgs","repos_url":"https://api.github.com/users/edubois/repos","events_url":"https://api.github.com/users/edubois/events{/privacy}","received_events_url":"https://api.github.com/users/edubois/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-08T23:06:04Z","updated_at":"2018-03-11T04:34:30Z","closed_at":"2018-03-11T04:34:30Z","author_association":"NONE","body":"Hi,\r\nI'm trying to map boost::gil views pointers into TensorCPU. So let's take an example of an RGB image.\r\nI just wanted to know: are caffe2 tensors defined as planar:\r\nRRRR\r\nRRRR\r\nRRRR\r\nGGGG\r\nGGGG\r\nBBBB\r\nBBBB\r\nBBBB\r\n\r\nOr interleaved:\r\nRGBRGBRGBRGB\r\nRGBRGBRGBRGB\r\nRGBRGBRGBRGB\r\n\r\n\r\n?\r\n\r\nI guess it's planar, but just want to be sure.\r\n\r\nThis is important to know especially for the convolutions."},"comment":{"url":"https://api.github.com/repos/caffe2/caffe2/issues/comments/372088783","html_url":"https://github.com/caffe2/caffe2/issues/2206#issuecomment-372088783","issue_url":"https://api.github.com/repos/caffe2/caffe2/issues/2206","id":372088783,"user":{"login":"Maratyszcza","id":1093985,"avatar_url":"https://avatars1.githubusercontent.com/u/1093985?v=4","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":"2018-03-11T04:34:30Z","updated_at":"2018-03-11T04:34:30Z","author_association":"CONTRIBUTOR","body":"Caffe2 supports both, we call \"planar\" format NCHW and \"interleaved\" format - NHWC. By default, all CNN operators (convolution, deconvolution, pooling, etc) expect NCHW. If you want to work with NHWC, add `order`: `NHWC` argument to CNN operators."}}
{"actor":{"display_login":"Maratyszcza"}}