Average pooling
(model, blob_in, blob_out, use_cudnn=False, order="NCHW",
**kwargs)
| 16 | |
| 17 | |
| 18 | def average_pool(model, blob_in, blob_out, use_cudnn=False, order="NCHW", |
| 19 | **kwargs): |
| 20 | """Average pooling""" |
| 21 | if use_cudnn: |
| 22 | kwargs['engine'] = 'CUDNN' |
| 23 | return model.net.AveragePool( |
| 24 | blob_in, |
| 25 | blob_out, |
| 26 | order=order, |
| 27 | **kwargs |
| 28 | ) |
| 29 | |
| 30 | |
| 31 | def max_pool_with_index(model, blob_in, blob_out, order="NCHW", **kwargs): |
nothing calls this directly
no test coverage detected
searching dependent graphs…