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

Replace calls to trial related step specific methods in GenerationStrategy #2002

Closed
wants to merge 1 commit into from

Conversation

mgarrard
Copy link
Contributor

Summary: This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done becasue we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Differential Revision: D51172395

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Nov 18, 2023
@facebook-github-bot
Copy link
Contributor

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 18, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done becasue we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Differential Revision: D51172395
@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (66dd7df) 94.50% compared to head (53d6466) 94.47%.

❗ Current head 53d6466 differs from pull request most recent head fa9a2df. Consider uploading reports for the commit fa9a2df to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2002      +/-   ##
==========================================
- Coverage   94.50%   94.47%   -0.04%     
==========================================
  Files         460      460              
  Lines       44333    44339       +6     
==========================================
- Hits        41898    41888      -10     
- Misses       2435     2451      +16     

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 27, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done becasue we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Differential Revision: D51172395
mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 27, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done becasue we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Differential Revision: D51172395
mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 27, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done becasue we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 28, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 28, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Differential Revision: D51172395
mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 28, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Differential Revision: D51172395
mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 28, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Reviewed By: lena-kashtelyan

Differential Revision: D51172395
mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 28, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Reviewed By: lena-kashtelyan

Differential Revision: D51172395
mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 28, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Reviewed By: lena-kashtelyan

Differential Revision: D51172395
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Reviewed By: lena-kashtelyan

Differential Revision: D51172395
mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 28, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Reviewed By: lena-kashtelyan

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

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

mgarrard pushed a commit to mgarrard/Ax that referenced this pull request Nov 28, 2023
…ategy (facebook#2002)

Summary:

This diff removes the last uses of num_remaining_trials_until_max_parallelism(), num_trials, num_can_complete, and enforce_num_trials from the GenerationStrategy file. This can be done bc we can compute all the necessary info on GenerationNode now. And, since we want GenerationStrategy to accept GenerationNodes and GenerationSteps we cannot have any leftover calls from the GenerationStep level.

Reviewed By: lena-kashtelyan

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

This pull request has been merged in 8859435.

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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants