mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-09-16 22:20:26 +00:00
Transfer ABC inheritance from BaseModel to BasePolicy (#1062)
Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org>
This commit is contained in:
parent
d0b129ecc3
commit
b7456392ac
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ from stable_baselines3.common.type_aliases import Schedule
|
|||
from stable_baselines3.common.utils import get_device, is_vectorized_observation, obs_as_tensor
|
||||
|
||||
|
||||
class BaseModel(nn.Module, ABC):
|
||||
class BaseModel(nn.Module):
|
||||
"""
|
||||
The base model object: makes predictions in response to observations.
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ class BaseModel(nn.Module, ABC):
|
|||
return observation, vectorized_env
|
||||
|
||||
|
||||
class BasePolicy(BaseModel):
|
||||
class BasePolicy(BaseModel, ABC):
|
||||
"""The base policy object.
|
||||
|
||||
Parameters are mostly the same as `BaseModel`; additions are documented below.
|
||||
|
|
|
|||
Loading…
Reference in a new issue