Skip to content

December 2, 2023

[Solved] RuntimeError: OrderedDict mutated during iteration – OrderedDict Could Not Changed

Last Updated on 2023-12-02 by Clay

Problem

Today I tried to load the model weights file after torch.compile(), and then I found the weights is stored by OrderedDict data structure. This data structure is an ordered sequence, in other word its content needs to follow the order.

Read More »[Solved] RuntimeError: OrderedDict mutated during iteration – OrderedDict Could Not Changed
Exit mobile version