浏览代码

cleanup

/develop-gpu-test
Chris Elion 5 年前
当前提交
73a346cb
共有 28 个文件被更改,包括 26 次插入28 次删除
  1. 2
      ml-agents/mlagents/trainers/__init__.py
  2. 2
      ml-agents/mlagents/trainers/bc/models.py
  3. 2
      ml-agents/mlagents/trainers/components/bc/model.py
  4. 2
      ml-agents/mlagents/trainers/components/reward_signals/__init__.py
  5. 2
      ml-agents/mlagents/trainers/components/reward_signals/curiosity/model.py
  6. 2
      ml-agents/mlagents/trainers/components/reward_signals/curiosity/signal.py
  7. 2
      ml-agents/mlagents/trainers/components/reward_signals/gail/model.py
  8. 2
      ml-agents/mlagents/trainers/components/reward_signals/gail/signal.py
  9. 2
      ml-agents/mlagents/trainers/models.py
  10. 2
      ml-agents/mlagents/trainers/ppo/models.py
  11. 2
      ml-agents/mlagents/trainers/ppo/multi_gpu_policy.py
  12. 2
      ml-agents/mlagents/trainers/ppo/policy.py
  13. 2
      ml-agents/mlagents/trainers/sac/models.py
  14. 2
      ml-agents/mlagents/trainers/sac/policy.py
  15. 2
      ml-agents/mlagents/trainers/tensorflow_to_barracuda.py
  16. 2
      ml-agents/mlagents/trainers/tests/test_bc.py
  17. 2
      ml-agents/mlagents/trainers/tests/test_multigpu.py
  18. 2
      ml-agents/mlagents/trainers/tests/test_ppo.py
  19. 2
      ml-agents/mlagents/trainers/tests/test_sac.py
  20. 2
      ml-agents/mlagents/trainers/tests/test_trainer_controller.py
  21. 2
      ml-agents/mlagents/trainers/tf_policy.py
  22. 2
      ml-agents/mlagents/trainers/trainer.py
  23. 2
      ml-agents/mlagents/trainers/trainer_controller.py
  24. 2
      test_constraints_max_tf2_version.txt
  25. 4
      test_constraints_min_version.txt
  26. 2
      ml-agents/mlagents/tf_utils/__init__.py
  27. 0
      /ml-agents/mlagents/tf_utils/tf.py

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


from mlagents.trainers.tf import tf as tf # noqa
from mlagents.trainers.tf import tf_flatten, tf_rnn, tf_variance_scaling # noqa

2
ml-agents/mlagents/trainers/bc/models.py


from mlagents.trainers import tf, tf_variance_scaling
from mlagents.tf_utils import tf, tf_variance_scaling
from mlagents.trainers.models import LearningModel

2
ml-agents/mlagents/trainers/components/bc/model.py


from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.trainers.models import LearningModel

2
ml-agents/mlagents/trainers/components/reward_signals/__init__.py


import numpy as np
import abc
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.envs.brain import BrainInfo
from mlagents.trainers.trainer import UnityTrainerException

2
ml-agents/mlagents/trainers/components/reward_signals/curiosity/model.py


from typing import List, Tuple
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.trainers.models import LearningModel

2
ml-agents/mlagents/trainers/components/reward_signals/curiosity/signal.py


from typing import Any, Dict, List
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.envs.brain import BrainInfo

2
ml-agents/mlagents/trainers/components/reward_signals/gail/model.py


from typing import List, Optional, Tuple
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.trainers.models import LearningModel

2
ml-agents/mlagents/trainers/components/reward_signals/gail/signal.py


from typing import Any, Dict, List
import logging
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.envs.brain import BrainInfo
from mlagents.trainers.components.reward_signals import RewardSignal, RewardSignalResult

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


from typing import Callable, Dict, List, Optional
import numpy as np
from mlagents.trainers import tf, tf_variance_scaling, tf_rnn, tf_flatten
from mlagents.tf_utils import tf, tf_variance_scaling, tf_rnn, tf_flatten
from mlagents.trainers.trainer import UnityTrainerException
from mlagents.envs.brain import CameraResolution

2
ml-agents/mlagents/trainers/ppo/models.py


from typing import Optional
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.trainers.models import LearningModel, EncoderType, LearningRateSchedule
logger = logging.getLogger("mlagents.trainers")

2
ml-agents/mlagents/trainers/ppo/multi_gpu_policy.py


import logging
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from tensorflow.python.client import device_lib
from mlagents.envs.timers import timed

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


import numpy as np
from typing import Any, Dict, Optional
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.envs.timers import timed
from mlagents.envs.brain import BrainInfo, BrainParameters

2
ml-agents/mlagents/trainers/sac/models.py


import numpy as np
from typing import Dict, List, Optional
from mlagents.trainers import tf, tf_variance_scaling
from mlagents.tf_utils import tf, tf_variance_scaling
from mlagents.trainers.models import LearningModel, LearningRateSchedule, EncoderType

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


import logging
from typing import Dict, Any, Optional
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.envs.timers import timed
from mlagents.envs.brain import BrainInfo, BrainParameters

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


from __future__ import print_function
import numpy as np
import struct # convert from Python values and C structs
from mlagents.trainers import tf
from mlagents.tf_utils import tf
import re
# import barracuda

2
ml-agents/mlagents/trainers/tests/test_bc.py


import os
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
import yaml
from mlagents.trainers.bc.models import BehavioralCloningModel

2
ml-agents/mlagents/trainers/tests/test_multigpu.py


import unittest.mock as mock
import pytest
from mlagents.trainers import tf
from mlagents.tf_utils import tf
import yaml
from mlagents.trainers.ppo.multi_gpu_policy import MultiGpuPPOPolicy

2
ml-agents/mlagents/trainers/tests/test_ppo.py


import pytest
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
import yaml

2
ml-agents/mlagents/trainers/tests/test_sac.py


import yaml
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.trainers.sac.models import SACModel

2
ml-agents/mlagents/trainers/tests/test_trainer_controller.py


from unittest.mock import MagicMock, Mock, patch
from mlagents.trainers import tf
from mlagents.tf_utils import tf
import yaml
import pytest

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


from typing import Any, Dict, List, Optional
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from mlagents.envs.exception import UnityException
from mlagents.envs.policy import Policy

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


from typing import Dict, List, Deque, Any
import os
from mlagents.trainers import tf
from mlagents.tf_utils import tf
import numpy as np
from collections import deque, defaultdict

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


from typing import Dict, List, Optional, Set
import numpy as np
from mlagents.trainers import tf
from mlagents.tf_utils import tf
from time import time
from mlagents.envs.env_manager import EnvironmentStep

2
test_constraints_max_tf2_version.txt


# For projects with upper bounds, we should periodically update this list to the latest release version
grpcio>=1.23.0
numpy>=1.17.2
tensorflow>=1.14.0,<2.0
tensorflow>=2.0.0,<2.1.0

4
test_constraints_min_version.txt


numpy==1.16.0 # TEMP
Pillow==4.2.1
protobuf==3.6
# TEMPORARY
#tensorflow==1.7
tensorflow==2.0.0
tensorflow==1.7

2
ml-agents/mlagents/tf_utils/__init__.py


from mlagents.tf_utils.tf import tf as tf # noqa
from mlagents.tf_utils.tf import tf_flatten, tf_rnn, tf_variance_scaling # noqa

/ml-agents/mlagents/trainers/tf.py → /ml-agents/mlagents/tf_utils/tf.py

正在加载...
取消
保存