浏览代码

Update ml-agents/mlagents/trainers/policy/tf_policy.py

Co-authored-by: Vincent-Pierre BERGES <vincentpierre@unity3d.com>
/develop/actionmodel-csharp
GitHub 4 年前
当前提交
9d8a7d6f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/policy/tf_policy.py

2
ml-agents/mlagents/trainers/policy/tf_policy.py


)
if self.action_spec.continuous_size > 0 and self.action_spec.discrete_size > 0:
raise UnityPolicyException(
"Tensorflow does not support mixed action spaces. Please run with --torch."
"TensorFlow does not support mixed action spaces. Please run with the Torch framework."
)
# for ghost trainer save/load snapshots
self.assign_phs: List[tf.Tensor] = []

正在加载...
取消
保存