BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
33.96k stars 18.72k forks source link

blob.hpp dimension check code problem #7060

Open qiulinzhang opened 1 year ago

qiulinzhang commented 1 year ago

Issue summary

blob.hpp offset dimension check code problem image Line 157 I think should check CHECK_GE(c, 0), while not CHECK_GE(channels(), 0); also the last 2 lines, line 159 and line 161, for width and height

Steps to reproduce

Tried solutions

System configuration

Issue checklist