PiPPy icon indicating copy to clipboard operation
PiPPy copied to clipboard

PyTorch renaming submod indices leading to assert break

Open kwen2501 opened this issue 1 year ago • 0 comments

After certain torch 2.2.0.dev version, submod_0, submod_1, submod_2 ... are named as submod_0, submod_2, submod_4 ...

Hence this assert would fail:

pippy/IR.py", line 682, in _number_and_count_forward_stages
    assert all(i in found_idxs for i in range(num_stages, step=2))

kwen2501 avatar Dec 06 '23 20:12 kwen2501