diffq/diffq.py [172:177]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        for group in optimizer.param_groups:
            for q in list(group["params"]):
                for p in params:
                    if p is q:
                        raise RuntimeError("You should create the optimizer "
                                           "before the quantizer!")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



diffq/lsq.py [82:87]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        for group in optimizer.param_groups:
            for q in list(group["params"]):
                for p in params:
                    if p is q:
                        raise RuntimeError("You should create the optimizer "
                                           "before the quantizer!")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



