提交 fbabf377 authored 作者: --global's avatar --global

Remove unused function ScanOp.get_output_slice_idx()

上级 ed9d6edd
...@@ -1493,20 +1493,6 @@ class Scan(PureOp): ...@@ -1493,20 +1493,6 @@ class Scan(PureOp):
else: else:
return -1 return -1
def get_output_slice_idx(self, output_index):
""" For an ``output_index``, an index in the outter ouputs of scan,
find a corresponding index in the inner outputs of scan.
"""
ipos = 0
opos = output_index
for otaps in zip(self.mitmot_out_taps()):
if len(otaps) > 0:
return ipos
else:
opos = opos - 1
ipos += len(otaps)
return ipos + opos
def inner_connection_pattern(self): def inner_connection_pattern(self):
""" Returns the connection pattern of scan's inner function """ Returns the connection pattern of scan's inner function
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论