DAG4MIA
DAG4MIA copied to clipboard
我代码运行过程中出现了错误
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)
你好,你这里展示的是底层代码,看起来像是数据加载过程中没有读到数据,请检查读取数据的地址是否正确