MCPcopy Index your code
hub / github.com/pytorch/pytorch / average_pool

Function average_pool

caffe2/python/helpers/pooling.py:18–28  ·  view source on GitHub ↗

Average pooling

(model, blob_in, blob_out, use_cudnn=False, order="NCHW",
                 **kwargs)

Source from the content-addressed store, hash-verified

16
17
18def 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
31def max_pool_with_index(model, blob_in, blob_out, order="NCHW", **kwargs):

Callers

nothing calls this directly

Calls 1

AveragePoolMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…