Contents:
from gridmind.policies.base_policy import BasePolicy from torch import nn [docs]class BaseParameterizedPolicy(nn.Module, BasePolicy): def __init__( self, observation_shape: tuple, num_actions: int, ): nn.Module.__init__(self) BasePolicy.__init__(self) [docs] self.observation_shape = observation_shape [docs] self.num_actions = num_actions