Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/caffe/blob.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ class Blob {
inline int offset(const int n, const int c = 0, const int h = 0,
const int w = 0) const {
CHECK_GE(n, 0);
CHECK_LE(n, num());
CHECK_LT(n, num());
CHECK_GE(channels(), 0);
CHECK_LE(c, channels());
CHECK_LT(c, channels());
CHECK_GE(height(), 0);
CHECK_LE(h, height());
CHECK_LT(h, height());
CHECK_GE(width(), 0);
CHECK_LE(w, width());
CHECK_LT(w, width());
return ((n * channels() + c) * height() + h) * width() + w;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/extra/parse_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def write_csv(output_filename, dict_list, delimiter, verbose=False):
dict_writer.writeheader()
dict_writer.writerows(dict_list)
if verbose:
print 'Wrote %s' % output_filename
print('Wrote %s' % output_filename)


def parse_args():
Expand Down