MaxPooling 最大池化简单实现
#!/usr/bin/env python2 # -*-coding:utf8-*- import numpy as np def max_pooling(feature_map, size=2, stride=2): """max_pooling""" channel = feature_map.shape[0] height = feature_map.shape[1] width = feature_map.shape[2] # 确定最后的输出形状 out_height = np.uint16((height - size) // stri
下载地址
用户评论