{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/3084","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/3084/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/3084/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/3084/events","html_url":"https://github.com/BVLC/caffe/issues/3084","id":107192046,"number":3084,"title":"Blob size exceeds INT_MAX","user":{"login":"PiranjaF","id":9516330,"avatar_url":"https://avatars.githubusercontent.com/u/9516330?v=3","gravatar_id":"","url":"https://api.github.com/users/PiranjaF","html_url":"https://github.com/PiranjaF","followers_url":"https://api.github.com/users/PiranjaF/followers","following_url":"https://api.github.com/users/PiranjaF/following{/other_user}","gists_url":"https://api.github.com/users/PiranjaF/gists{/gist_id}","starred_url":"https://api.github.com/users/PiranjaF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiranjaF/subscriptions","organizations_url":"https://api.github.com/users/PiranjaF/orgs","repos_url":"https://api.github.com/users/PiranjaF/repos","events_url":"https://api.github.com/users/PiranjaF/events{/privacy}","received_events_url":"https://api.github.com/users/PiranjaF/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-18T12:20:44Z","updated_at":"2015-12-10T01:26:33Z","closed_at":"2015-09-21T08:03:43Z","body":"\r\nWhen running my code I get the following error `blob.cpp:29] Check failed: shape[i] <= 2147483647 / count_ (24 vs. 17) blob size exceeds INT_MAX`, which I've found in the source code as seen below. However, I am curious as to how to circumvent this limit, which seems rather low. If I e.g. use 200x200 images, then I can only input `2147483647  / 40000 = 53687` images. Is this a bug? \r\n\r\nI am currently using HDF5 as my data source. Would it make any difference if I used another data source instead?\r\n\r\n\r\n```\r\ntemplate <typename Dtype>\r\nvoid Blob<Dtype>::Reshape(const vector<int>& shape) {\r\n  CHECK_LE(shape.size(), kMaxBlobAxes);\r\n  count_ = 1;\r\n  shape_.resize(shape.size());\r\n  for (int i = 0; i < shape.size(); ++i) {\r\n    CHECK_GE(shape[i], 0);\r\n    CHECK_LE(shape[i], INT_MAX / count_) << \"blob size exceeds INT_MAX\";\r\n    count_ *= shape[i];\r\n    shape_[i] = shape[i];\r\n  }\r\n  if (count_ > capacity_) {\r\n    capacity_ = count_;\r\n    data_.reset(new SyncedMemory(capacity_ * sizeof(Dtype)));\r\n    diff_.reset(new SyncedMemory(capacity_ * sizeof(Dtype)));\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/163457244","html_url":"https://github.com/BVLC/caffe/issues/3084#issuecomment-163457244","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/3084","id":163457244,"user":{"login":"vra","id":5562395,"avatar_url":"https://avatars.githubusercontent.com/u/5562395?v=3","gravatar_id":"","url":"https://api.github.com/users/vra","html_url":"https://github.com/vra","followers_url":"https://api.github.com/users/vra/followers","following_url":"https://api.github.com/users/vra/following{/other_user}","gists_url":"https://api.github.com/users/vra/gists{/gist_id}","starred_url":"https://api.github.com/users/vra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vra/subscriptions","organizations_url":"https://api.github.com/users/vra/orgs","repos_url":"https://api.github.com/users/vra/repos","events_url":"https://api.github.com/users/vra/events{/privacy}","received_events_url":"https://api.github.com/users/vra/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T01:26:33Z","updated_at":"2015-12-10T01:26:33Z","body":"@lukeyeager Thanks! that's helpful."}}