openrl.utils package¶ Submodules¶ openrl.utils.logger module¶ class openrl.utils.logger.Logger(cfg, project_name: str, scenario_name: str, wandb_entity: str, exp_name: Optional[str] = None, log_path: Optional[str] = None, use_wandb: bool = False, use_tensorboard: bool = False, log_level: int = 10)[源代码]¶ 基类:object close()[源代码]¶ info(msg: str)[源代码]¶ log_info(infos: Dict[str, Any], step: int) → None[源代码]¶ log_learner_info(leaner_id: int, infos: Dict[str, Any], step: int) → None[源代码]¶ openrl.utils.util module¶ openrl.utils.util.check(input)[源代码]¶ openrl.utils.util.check_v2(input, use_half=False, tpdv=None)[源代码]¶ openrl.utils.util.get_system_info() → Dict[str, str][源代码]¶ Retrieve system and python env info for the current system. 参数 print_info -- Whether to print or not those infos 返回 Dictionary summing up the version for each relevant package and a formatted string. openrl.utils.util.set_seed(seed)[源代码]¶ Module contents¶