Skip to content

Make input & outcome transforms first class attributes of Model#2630

Closed
saitcakmak wants to merge 1 commit intometa-pytorch:mainfrom
saitcakmak:export-D66012223
Closed

Make input & outcome transforms first class attributes of Model#2630
saitcakmak wants to merge 1 commit intometa-pytorch:mainfrom
saitcakmak:export-D66012223

Conversation

@saitcakmak
Copy link
Contributor

Summary: These were previously only set when they were not None, which lead to a lot of hasattr, getattr usage throughout the codebase to check for them. This diff adds them as attributes to base Model class with default values of None. With this change, we can now access model.input/outcome_transform on all models.

Differential Revision: D66012223

Summary: These were previously only set when they were not None, which lead to a lot of `hasattr`, `getattr` usage throughout the codebase to check for them. This diff adds them as attributes to base `Model` class with default values of `None`. With this change, we can now access `model.input/outcome_transform` on all models.

Differential Revision: D66012223
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Nov 15, 2024
@facebook-github-bot
Copy link
Contributor

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

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

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants