ad60498885593181f25f02cf01a72ef8f3f18167,dqn.py,DQN,_compute_loss,#DQN#Any#Any#Any#,124
Before Change
batch_q = self.q_function(batch_state, test=False).q_values
batch_q_target = self._compute_target_values(
experiences, gamma, cuda.to_cpu(batch_q.data) )
if self.gpu >= 0:
batch_q_target = cuda.to_gpu(batch_q_target, self.gpu)
batch_q_target = Variable(batch_q_target)
if errors_out is not None:
del errors_out[:]
delta = F.sum(
After Change
batch_actions), (batch_size, 1))
batch_q_target = F.reshape(
self._compute_target_values(experiences, gamma), (batch_size, 1) )
if errors_out is not None:
del errors_out[:]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: chainer/chainerrl
Commit Name: ad60498885593181f25f02cf01a72ef8f3f18167
Time: 2016-06-03
Author: muupan@gmail.com
File Name: dqn.py
Class Name: DQN
Method Name: _compute_loss
Project Name: chainer/chainercv
Commit Name: 2d44d66f74c0be1f2952af80cc11a9076fd71e3c
Time: 2019-03-04
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/mask_rcnn/mask_head.py
Class Name:
Method Name: mask_loss_post
Project Name: chainer/chainercv
Commit Name: 90b78b1379b3423aa3b4b5d0de7313f88bda23ab
Time: 2019-02-17
Author: yuyuniitani@gmail.com
File Name: chainercv/utils/mask/mask_to_bbox.py
Class Name:
Method Name: mask_to_bbox