model.py 文件源码

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

项目:gogh-figure 作者: joelmoniz 项目源码 文件源码
def style_loss5d(self, out_layer, target_style_layer):
        # Each input is a 5D tensor: (style loss layer, batch, feature map, height, width)
        return T.mean(T.sum(T.sqr(self.batched_gram(out_layer) - T.tile(self.batched_gram(target_style_layer), (1, T.shape(out_layer)[0], 1, 1))), axis=(2,3)), axis=1)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号