Home
last modified time | relevance | path

Searched refs:AvgPool2d (Results 1 – 21 of 21) sorted by relevance

/third_party/mindspore/tests/st/ops/cpu/
Dtest_avgpool_op.py30 net = nn.AvgPool2d(kernel_size=2, stride=1, pad_mode='valid')
48 net = nn.AvgPool2d(kernel_size=2, stride=2, pad_mode='valid')
64 net = nn.AvgPool2d(kernel_size=3, stride=2, pad_mode='valid')
79 net = nn.AvgPool2d(kernel_size=3, stride=2, pad_mode='same')
Dtest_avgpool_grad_op.py43 net = nn.AvgPool2d(kernel_size=3, stride=2, pad_mode='valid')
/third_party/mindspore/tests/ut/python/pynative_mode/nn/
Dtest_pooling.py29 avg_pool = nn.AvgPool2d(kernel_size, stride)
43 nn.AvgPool2d(kernel_size, stride)
Dtest_container.py32 avg_pool = nn.AvgPool2d(kernel_size, stride)
/third_party/mindspore/tests/ut/python/pipeline/parse/
Dtest_celllist.py20 from mindspore.nn import AvgPool2d
55 self.seq = SequentialCell([AvgPool2d(3, 1), ReLU(), Flatten()])
/third_party/mindspore/tests/ut/python/exec/
Dtest_pooling.py40 self.avgpool = nn.AvgPool2d(kernel_size,
Dresnet_example.py204 self.avgpool = nn.AvgPool2d(7, 1)
/third_party/mindspore/tests/ut/python/pynative_mode/ge/ops/
Dtest_pooling.py30 avg_pool = nn.AvgPool2d(kernel_size, stride)
/third_party/mindspore/mindspore/nn/layer/
Dpooling.py228 class AvgPool2d(_PoolNd): class
297 super(AvgPool2d, self).__init__(kernel_size, stride, pad_mode, data_format)
Dimage.py26 from .pooling import AvgPool2d
373 self.avg_pool = AvgPool2d(kernel_size=2, stride=2, pad_mode='valid')
/third_party/mindspore/tests/ut/python/nn/
Dtest_pooling.py30 self.avgpool = nn.AvgPool2d(kernel_size, stride)
Dtest_container.py32 avg_pool = nn.AvgPool2d(kernel_size, stride)
/third_party/mindspore/tests/ut/python/model/
Dres18_example.py120 self.avgpool = nn.AvgPool2d(7, 1)
189 self.avgpool = nn.AvgPool2d(7, 1)
/third_party/mindspore/tests/ut/python/communication/
Dtest_data_parallel_resnet.py122 self.avgpool = nn.AvgPool2d(7, 1)
191 self.avgpool = nn.AvgPool2d(7, 1)
/third_party/mindspore/mindspore/lite/examples/export_models/models/
DNetworkInNetwork.py59 nn.AvgPool2d(kernel_size=8, stride=1, pad_mode='valid')
/third_party/mindspore/tests/ut/python/ops/
Dtest_ops_check.py167 'block': nn.AvgPool2d(5, pad_mode='same'),
170 'block': nn.AvgPool2d(5, pad_mode='valid'),
/third_party/mindspore/tests/perf_test/
Dresnet_example.py117 self.avgpool = nn.AvgPool2d(7, 1)
/third_party/mindspore/tests/st/networks/models/deeplabv3/src/
Ddeeplabv3.py105 … self.global_pooling = nn.AvgPool2d(kernel_size=(int(feature_shape[0]), int(feature_shape[1])))
110 self.global_poolings.append(nn.AvgPool2d(kernel_size=(int(pooling_h), int(pooling_w))))
/third_party/mindspore/tests/ut/python/optimizer/
Dtest_debug_location.py154 self.seq = nn.SequentialCell([nn.AvgPool2d(3, 1), nn.ReLU(), nn.Flatten()])
/third_party/mindspore/tests/st/export_and_load/
Dtest_resnet_air.py300 self.pool = nn.AvgPool2d(7, 1)
/third_party/mindspore/tests/st/networks/
Dtest_gpu_resnet.py306 self.pool = nn.AvgPool2d(7, 1)