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.

returnweight_sdifself.max_sdisNoneelseweight_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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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