| 1 | |
| 2 | the typical usage |
| 3 | ``` |
| 4 | ncnnoptimize mobilenet.param mobilenet.bin mobilenet-opt.param mobilenet-opt.bin 65536 |
| 5 | ``` |
| 6 | |
| 7 | operator fusion |
| 8 | * batchnorm - scale |
| 9 | * convolution - batchnorm |
| 10 | * convolutiondepthwise - batchnorm |
| 11 | * deconvolution - batchnorm |
| 12 | * deconvolutiondepthwise - batchnorm |
| 13 | * innerproduct - batchnorm |
| 14 | * convolution - relu |
| 15 | * convolutiondepthwise - relu |
| 16 | * deconvolution - relu |
| 17 | * deconvolutiondepthwise - relu |
| 18 | * innerproduct - relu |
| 19 | |
| 20 | eliminate noop operator |
| 21 | * innerproduct - dropout |
| 22 | * flatten after global pooling |
| 23 | |
| 24 | prefer better operator |
| 25 | * replace convolution with innerproduct after global pooling |