EleutherAI / oslo

OSLO: Open Source for Large-scale Optimization

Home Page:https://oslo.eleuther.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix sorting error at allocate_param function

bzantium opened this issue · comments

  • when sorting dictionary, need to use sorted(dict.items(), key=lambda item: str(item[0])) not just sorted(dict, key lambda x: x[0]) because key is enum which not comparable so need to be converted into str.