basic_cnn_tail.py 文件源码

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

项目:SeRanet 作者: corochann 项目源码 文件源码
def clear(self):
        self.loss = None
        # self.accuracy = None

#    def forward(self, x, t):
#        self.clear()
#        #x = chainer.Variable(x_data)  # x_data.astype(np.float32)
#        #t = chainer.Variable(t_data)  # [Note]: x_data, t_data must be np.float32 type
#
#        #self.loss = F.huber_loss(h, t, delta= 1 / 255.)
#        self.loss = F.mean_squared_error(self(x), t)
#        # self.accuracy = F.accuracy(h, t)  # type inconpatible
#        return self.loss
#
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号