model.py 文件源码

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

项目:gogh-figure 作者: joelmoniz 项目源码 文件源码
def style_loss_pg(self, out_layer, target_style_gram):
        # Each input is a 4D tensor: (batch, feature map, height, width)
        # TODO: Make the first dim broadcastable instead of tiling
        return T.mean(T.sqr(self.batched_gram(out_layer) - T.tile(target_style_gram, (T.shape(out_layer)[0], 1, 1))))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号