MCPcopy Create free account
hub / github.com/ddsggcs/cv_learning_resnet50 / ComputeMaxPoolLayer

Function ComputeMaxPoolLayer

practice/python/infer.py:194–208  ·  view source on GitHub ↗

执行最大池化操作。 参数: in_data (numpy.ndarray): 需要进行最大池化的输入数据。 返回: numpy.ndarray: 最大池化后的结果。

(in_data)

Source from the content-addressed store, hash-verified

192
193
194def ComputeMaxPoolLayer(in_data):
195 """
196 执行最大池化操作。
197
198 参数:
199 in_data (numpy.ndarray): 需要进行最大池化的输入数据。
200
201 返回:
202 numpy.ndarray: 最大池化后的结果。
203 """
204 print("-- compute maxpool")
205 # 调用最大池化函数处理输入数据
206 res = pool.MaxPool(in_data)
207 print(res.shape)
208 return res
209
210
211def ComputeAvgPoolLayer(in_data):

Callers 1

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected