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

Fix Pytorch lightning unit test #4780

Merged
merged 4 commits into from
Jul 10, 2023
Merged

Conversation

Alnusjaponica
Copy link
Collaborator

Motivation

Resolve #4524

Description of the changes

See #4524

@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2023

Codecov Report

Merging #4780 (04d8a49) into master (12072ce) will increase coverage by 0.00%.
The diff coverage is n/a.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##           master    #4780   +/-   ##
=======================================
  Coverage   90.74%   90.75%           
=======================================
  Files         190      190           
  Lines       14444    14444           
=======================================
+ Hits        13107    13108    +1     
+ Misses       1337     1336    -1     

see 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Alnusjaponica Alnusjaponica marked this pull request as ready for review July 2, 2023 00:37
@c-bata c-bata self-assigned this Jul 4, 2023
@c-bata c-bata added the test Unit test. label Jul 4, 2023
@c-bata
Copy link
Member

c-bata commented Jul 4, 2023

@not522 Could you review this PR if you have time?

Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your pull request! Looks almost good to me. I left one suggestion though.

from typing import Union
from __future__ import annotations

from collections.abc import Sequence
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you unintentionally changed the import statement here.

Suggested change
from collections.abc import Sequence
from typing import Sequence

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it is recommended by PEP584.
If it is better to separate type annotation update from this PR I'll revert the change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for letting me know! I didn't know that 🙇

Copy link
Member

@not522 not522 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@not522 not522 removed their assignment Jul 6, 2023
@c-bata c-bata added this to the v3.3.0 milestone Jul 10, 2023
Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@c-bata c-bata merged commit e3902d5 into optuna:master Jul 10, 2023
31 checks passed
@Alnusjaponica Alnusjaponica deleted the pytorch-lightning branch July 10, 2023 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Unit test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support PyTorch Lightning 2.0 in the unit-tests
4 participants