前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
Created by: DrRyanHuang
Bug fixes
APIs
如果建立一个空的 fluid.dygraph.LayerList 则无法直接 insert (0 <= index < len(self._sub_layers) 会为false,所以应考虑 fluid.dygraph.LayerList 为空的情况
fluid.dygraph.LayerList
insert
(0 <= index < len(self._sub_layers)
false