mirror of
https://github.com/wassname/ray.git
synced 2026-09-11 12:43:20 +08:00
[RLlib] Rename rllib.utils.types into typing to match built-in python module's name. (#10114)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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__)
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user