Shape mismatch CHECK logging improvements
- More logs when shapes mismatch
- Manual reviewed all matches of “grep -r CHECK.*shape src”
- Follow JUnit convention of:
```
CHECK(expected == actual)
<< “expected: “ << expected
<< “ vs. actual: ” << actual;
```
Layers:
- Recurrent
- BaseConvolutionLayer
- Slice (improves logging for incorrect parameter)
CHECK_EQ
- Would prefer to use CHECK_EQ(expected, actual):
https://github.com/google/glog/blob/master/src/glog/stl_logging.h.in#L36
- However this requires include of stl_logging.h which introduces a
build warning. I believe this would work if caffe was updated to the
latest version of glog but that's a bigger change. B
Bruno Bowden committed
fb0795cd325cee991073b3b02c280e04b62790ba
Parent: eeebdab