Expose LayerFactory::LayerTypeList in pycaffe#2930
Conversation
|
Look good to me :) |
There was a problem hiding this comment.
this should use self.assertTrue(...) instead of assert ... (edit: apparently assertIn is a thing too, should use that)
|
LGTM besides above comment. |
Useful for validating NetParameters without crashing on SIGABRT
6cf22fe to
51b172c
Compare
|
Thanks for the review. Changed and squashed. Why is Also, can you address this question:
That would be a huge help. |
|
Thanks for the update! The Edit: more info here -- apparently a plain
I think #1683 tried to do this |
Expose LayerFactory::LayerTypeList in pycaffe
I want to be able to validate NetParameters with pycaffe without waiting for Caffe to crash on SIGABRT.
Exposing
LayerTypeListin pycaffe lets me check the layer types and handle errors in a reasonable way.Is there any way to catch all CHECK/DCHECK errors with pycaffe and turn them into Python exceptions?