

@classmethod
def gen_class(cls, pdict):
    costs = []
    for cost in pdict['costs']:
        typ = cost['type']
        ccls = load_class(typ)
        cls.append(ccls.gen_class(cost['config']))
    pdict['costs'] = costs
    return cls(**pdict)

dataset/ETHPy150Open NervanaSystems/neon/neon/layers/container.py Multicost.gen_class/VarMisuse@44/56 `costs`->`cls`