Made separate functions for computing output shapes for all layers. R…#1156
Made separate functions for computing output shapes for all layers. R…#1156opencv-pushbot merged 1 commit intoopencv:masterfrom
Conversation
5652f12 to
6c3ba83
Compare
|
@vpisarev please take a look. I've changed Net interface by adding new functions |
|
getOutShapes() has been introduced, but it's not used in the corresponding allocate() methods. Also, as we discussed, getOutShapes() should also return size of a temporary buffer. And also it should report whether inputs can be processed in-place. Well, actually, allocate() method should be modified. They should not allocate memory either (and thus they should be renamed). In dnn2 branch I renamed allocate() to finalize() and made it superset of the proposed getOutShapes() method. I think, something like that should be done. The memory should be allocated by the Net engine |
|
@vpisarev I've made all changes, which you've mentioned in your comment above. Please take a look |
…emoved output blobs allocation from layers
|
👍 |
…emoved output blobs allocation from layers
This pullrequest changes
Added functions for computing layers shapes without inference. Moved creating blobs from layers to Net