[RLlib] Rename rllib.utils.types into typing to match built-in python module's name. (#10114)

This commit is contained in:
Sven Mika
2020-08-15 13:24:22 +02:00
committed by GitHub
parent ea51e94729
commit 2256047876
54 changed files with 56 additions and 53 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ from ray.rllib.models.torch.misc import SlimFC
from ray.rllib.utils.exploration.exploration import Exploration
from ray.rllib.utils.framework import try_import_torch, TensorType
from ray.rllib.utils.from_config import from_config
from ray.rllib.utils.types import SampleBatchType, TrainerConfigDict
from ray.rllib.utils.typing import SampleBatchType, TrainerConfigDict
torch, nn = try_import_torch()
+1 -1
View File
@@ -3,7 +3,7 @@ import os
import sys
from typing import Any, Optional
from ray.rllib.utils.types import TensorStructType, TensorShape, TensorType
from ray.rllib.utils.typing import TensorStructType, TensorShape, TensorType
logger = logging.getLogger(__name__)
+1 -1
View File
@@ -3,7 +3,7 @@ from typing import Union
from ray.rllib.utils.annotations import override
from ray.rllib.utils.framework import try_import_tf, try_import_torch
from ray.rllib.utils.schedules.schedule import Schedule
from ray.rllib.utils.types import TensorType
from ray.rllib.utils.typing import TensorType
tf1, tf, tfv = try_import_tf()
torch, _ = try_import_torch()