Fix sorting error at allocate_param function
bzantium opened this issue · comments
Minho Ryu commented
- when sorting dictionary, need to use
sorted(dict.items(), key=lambda item: str(item[0]))
not justsorted(dict, key lambda x: x[0])
because key is enum which not comparable so need to be converted into str.