Skip to content

error computing is not correct of covariant of pre and post process #5

@ozzzp

Description

@ozzzp

If I understand correctly, The pre and post process should be covariant, ie, the norm $tr(W H W^\top)$ should be invariance if we ignore the quantization error. but it seens that the error_compute method is not corrent to match this property:

https://github.com/jerry-chee/QuIP/blob/361ff4941d508d34b7631b88161315a51e9b5091/bal.py#L44-L48

Here, w is pre-processed but not post-processed, but quant_w and $H$ in the norm $tr(W H W^\top)$ seens that it is both pre-processed and post-processed therefore breaks the covariant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions