浏览代码

use torch

/develop/torch-omp-no-thread
Ruo-Ping Dong 4 年前
当前提交
df8f1b88
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 2
      ml-agents/mlagents/trainers/settings.py
  2. 1
      ml-agents/setup.py

2
ml-agents/mlagents/trainers/settings.py


threaded: bool = True
self_play: Optional[SelfPlaySettings] = None
behavioral_cloning: Optional[BehavioralCloningSettings] = None
framework: FrameworkType = FrameworkType.TENSORFLOW
framework: FrameworkType = FrameworkType.PYTORCH
cattr.register_structure_hook(
Dict[RewardSignalType, RewardSignalSettings], RewardSignalSettings.structure

1
ml-agents/setup.py


# We don't actually need six, but tensorflow does, and pip seems
# to get confused and install the wrong version.
"six>=1.12.0",
"torch>=1.5.0",
],
python_requires=">=3.6.1",
entry_points={

正在加载...
取消
保存