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] Remove reference to array_or_none() in torch frontend test #9442

Merged
merged 2 commits into from
Jan 8, 2023

Conversation

jaketae
Copy link
Contributor

@jaketae jaketae commented Jan 6, 2023

Context

As discussed in #9440, the torch frontend test_loss_functions.py includes a reference to the helpers.array_or_none() method, which was removed in commit c8d0524. This has been causing many CI runs to fail due to issues unrelated to the PR itself.

Solution

The referenced commit introduces a fix via st.one_of(). This PR also incorporates this fix to remove the illegal reference to array_or_none(). Closes #9440.

@jaketae jaketae marked this pull request as ready for review January 6, 2023 08:58
@jaketae
Copy link
Contributor Author

jaketae commented Jan 6, 2023

@CatB1t, could you kindly review this PR? Thank you!

@ivy-leaves ivy-leaves added the PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist label Jan 6, 2023
@jaketae jaketae changed the title Remove reference to array_or_none() in torch frontend test [Fix] Remove reference to array_or_none() in torch frontend test Jan 6, 2023
Copy link
Contributor

@CatB1t CatB1t left a comment

Choose a reason for hiding this comment

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

Hello @jaketae, Thanks a lot for your work! I've requested a few changes then we're good to merge!

@jaketae
Copy link
Contributor Author

jaketae commented Jan 6, 2023

Hello @CatB1t, thanks for the review! I've made changes as requested. Let me know if there's more to do!

@jaketae jaketae requested a review from CatB1t January 7, 2023 15:23
Copy link
Contributor

@CatB1t CatB1t left a comment

Choose a reason for hiding this comment

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

lgtm! thanks for your work @jaketae.

@CatB1t CatB1t merged commit c181fa7 into ivy-llc:master Jan 8, 2023
@jaketae jaketae deleted the fix-array-or-none branch January 8, 2023 07:19
NouranYoussef pushed a commit to NouranYoussef/ivy that referenced this pull request Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PyTorch Frontend Developing the PyTorch Frontend, checklist triggered by commenting add_frontend_checklist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][Testing] Broken test_loss_functions.py
4 participants