Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Weight std issue #4

Description

@ruili-pml

Hi Yingzhen,

Thanks for creating this library. When using fully factorized posterior structure I ran into a bug caused by zero values in weight variance, which can be easily fixed by setting the lower bound of clamp to be a very small number instead of zero.

return weight_sd if self.max_sd is None else weight_sd.clamp(0, self.max_sd)

I create a pull request to fix this small bug, would be great if you can take a look.

Kind regards,
Rui

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions