Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add storage for input constructors #2785

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mgarrard
Copy link
Contributor

Summary:
This diff adds storage support for the input constructors that we've implemented throughout this stack (diffs 11-19). As part of this update for storage we do a few things:

  1. updated NodeInputConstructors enum to store a string and then modified the call method to use that string to link to the correct method. We do this to avoid some strange behavior related to stroing the function as the enum value directly, namely being it's not registring as a enum but instead only the function.
  2. Added some additional tests

Reviewed By: lena-kashtelyan

Differential Revision: D62652950

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Sep 24, 2024
@facebook-github-bot
Copy link
Contributor

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

Summary:
Pull Request resolved: facebook#2785

This diff adds storage support for the input constructors that we've implemented throughout this stack (diffs 11-19). As part of this update for storage we do a few things:
1. updated NodeInputConstructors enum to store a string and then modified the call method to use that string to link to the correct method. We do this to avoid some strange behavior related to stroing the function as the enum value directly, namely being it's not registring as a enum but instead only the function.
2. Added some additional tests

Reviewed By: lena-kashtelyan

Differential Revision: D62652950
@facebook-github-bot
Copy link
Contributor

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

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 92.30769% with 2 lines in your changes missing coverage. Please review.

Project coverage is 95.68%. Comparing base (8ba8ce3) to head (35fdaef).

Files with missing lines Patch % Lines
.../modelbridge/generation_node_input_constructors.py 86.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2785      +/-   ##
==========================================
- Coverage   95.68%   95.68%   -0.01%     
==========================================
  Files         488      488              
  Lines       47843    47856      +13     
==========================================
+ Hits        45779    45791      +12     
- Misses       2064     2065       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants