models.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Aesthetic_attributes_maps 作者: gautamMalu 项目源码 文件源码
def squared_root_normalization(x):
    """
    Squared root normalization for convolution layers` output
    first apply global average pooling followed by squared root on all elements
    then l2 normalize the vector

    :param x: input tensor, output of convolution layer
    :return:
    """
    x = GlobalAveragePooling2D()(x)
    #output shape = (None, nc)
   # x = K.sqrt(x)
    #x = K.l2_normalize(x, axis=0)
    return x
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号