Skip to content

Temporary attribute context manager for factories#794

Closed
JasonKChow wants to merge 2 commits into
facebookresearch:mainfrom
JasonKChow:export-D74192292
Closed

Temporary attribute context manager for factories#794
JasonKChow wants to merge 2 commits into
facebookresearch:mainfrom
JasonKChow:export-D74192292

Conversation

@JasonKChow
Copy link
Copy Markdown
Contributor

Summary: Utility context manager that allows us to temporarily modify the class attributes of a factory to make a module for a subclass. Now used in the pairwise factory.

Differential Revision: D74192292

JasonKChow added 2 commits May 5, 2025 12:17
…research#793)

Summary:

Factory classes to create mean and covariance modules has been refactored to use ConfigurableMixin. This means they follow the same from_config API as all other classes that can be initialized from a config.

The old functions are now deprecated and will warn.

Differential Revision: D74040481
Summary: Utility context manager that allows us to temporarily modify the class attributes of a factory to make a module for a subclass. Now used in the pairwise factory.

Differential Revision: D74192292
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 5, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D74192292

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in de1df6f.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants