浏览代码

Remove some comments

/develop-pytorch
Ervin Teng 5 年前
当前提交
ed2c35b9
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 7
      ml-agents/mlagents/trainers/ppo/policy.py

7
ml-agents/mlagents/trainers/ppo/policy.py


)
self.optimizer.zero_grad()
loss.backward()
# for grad,weight in zip(grads, self.model.trainable_weights):
# if "critic/" in weight.name:
# print(grad,weight.name)
# for stat_name, update_name in stats_needed.items():
# update_stats[stat_name] = update_vals[update_name]
return update_stats
def get_value_estimates(

正在加载...
取消
保存