Commit cc87e7e
Add assertion error if model not c2 compatible
Summary:
Pull Request resolved: #4248
The caffe 2 model exported was not handling MODEL.RPN.BBOX_REG_WEIGHTS) different of (1., 1., 1., 1.) or (1., 1., 1., 1., 1.) correctly because the config is not passed to caffe2 generate_proposals config. Modifying it won't slove the issue as there will be an api change customers like boltnn will have to manage. This fix is to fail during caffe2 export for non supported config to avoid non regression behavior troubleshooting
Reviewed By: sstsai-adl
Differential Revision: D36489096
fbshipit-source-id: 47493ebd5283fd3b3614c764aac5b96d58bf74741 parent e091a07 commit cc87e7e
2 files changed
+29
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
165 | 175 | | |
166 | 176 | | |
167 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments