Skip to content

Commit

Permalink
solve qval
Browse files Browse the repository at this point in the history
  • Loading branch information
WellyZhang committed Nov 22, 2016
1 parent 008b3cd commit 63af7ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_loss_symbols(self):
def define_loss(self, loss_exp):

self.loss = mx.symbol.MakeLoss(loss_exp, name="qfunc_loss")
self.loss = mx.symbol.Group([self.loss, self.qval])
self.loss = mx.symbol.Group([self.loss, mx.symbol.BlockGrad(self.qval)])

def define_exe(self, ctx, init, updater, input_shapes=None, args=None,
grad_req=None):
Expand Down

0 comments on commit 63af7ce

Please sign in to comment.