TorchModel¶
- class maze.core.agent.torch_model.TorchModel(device: str)¶
Base class for any torch model.
- Parameters:
device – Device the networks should be located on (cpu or cuda)
- abstract load_state_dict(state_dict: Dict) None¶
Set state dict of all encapsulated networks. :param state_dict: The torch state dictionary.
- abstract parameters() List[torch.Tensor]¶
Returns all parameters of all networks.