You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/12/13 01:11:58 UTC

[GitHub] mbaijal commented on a change in pull request #9046: Fix example example/reinforcement-learning/a3c

mbaijal commented on a change in pull request #9046: Fix example  example/reinforcement-learning/a3c
URL: https://github.com/apache/incubator-mxnet/pull/9046#discussion_r156541473
 
 

 ##########
 File path: example/reinforcement-learning/a3c/a3c.py
 ##########
 @@ -139,7 +144,7 @@ def train():
             module.save_params('%s-%04d.params'%(save_model_prefix, epoch))
 
 
-        for _ in range(epoch_size/args.t_max):
+        for _ in range(int(epoch_size/args.t_max)):
 
 Review comment:
   Using "for _ in range(epoch_size//args.t_max):" instead of typecast does not fix the issue here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services