浏览代码

handle no plugins found (#4969) (#4973)

/release_13_branch
GitHub 4 年前
当前提交
82911646
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8
      ml-agents/mlagents/plugins/stats_writer.py

8
ml-agents/mlagents/plugins/stats_writer.py


and evaluates them, and returns the list of all the StatsWriter implementations.
"""
all_stats_writers: List[StatsWriter] = []
if ML_AGENTS_STATS_WRITER not in importlib_metadata.entry_points():
logger.warning(
f"Unable to find any entry points for {ML_AGENTS_STATS_WRITER}, even the default ones. "
"Uninstalling and reinstalling ml-agents via pip should resolve. "
"Using default plugins for now."
)
return get_default_stats_writers(run_options)
entry_points = importlib_metadata.entry_points()[ML_AGENTS_STATS_WRITER]
for entry_point in entry_points:

正在加载...
取消
保存