DAG4MIA icon indicating copy to clipboard operation
DAG4MIA copied to clipboard

我代码运行过程中出现了错误

Open smallkaka opened this issue 2 years ago • 1 comments

raise IndexError('index {} is out of range'.format(idx)) IndexError: index 1 is out of range

出现问题的地方实在container.py中: def _get_abs_string_index(self, idx): """Get the absolute index for the list of modules""" idx = operator.index(idx) print(idx) if not (-len(self) <= idx < len(self)):#这里 raise IndexError('index {} is out of range'.format(idx)) if idx < 0: idx += len(self) return str(idx)

smallkaka avatar Dec 12 '22 13:12 smallkaka

你好,你这里展示的是底层代码,看起来像是数据加载过程中没有读到数据,请检查读取数据的地址是否正确

JoeGue avatar Jan 04 '23 07:01 JoeGue