Skip to content

Fix numpy size() and add test #1780

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

Merged
merged 2 commits into from
May 11, 2023

Conversation

Shaikh-Ubaid
Copy link
Collaborator

towards #1777 (review).

@Shaikh-Ubaid
Copy link
Collaborator Author

Ready.

@Shaikh-Ubaid Shaikh-Ubaid requested a review from certik May 11, 2023 15:06
@certik
Copy link
Contributor

certik commented May 11, 2023

Perfect. Since we are doing this, can you please also add in a test for some unsigned integer array, say u32? I implemented those recently, and there might still be some bugs.

Also let's rebase on top of the latest master, just to make sure.

@Shaikh-Ubaid Shaikh-Ubaid force-pushed the numpy_size_test_case branch from 33afbcc to 5329920 Compare May 11, 2023 17:48
@Shaikh-Ubaid
Copy link
Collaborator Author

Ready.

Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

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

I think this looks great, thanks!

@certik certik merged commit 144a50d into lcompilers:main May 11, 2023
Comment on lines +5 to +6
x: i32[4, 5, 2] = empty([4, 5, 2])
y: f64[24, 100, 2, 5] = empty([24, 100, 2, 5])
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed one problem here, but I created a dedicated issue for this: #1790, as we need to test that LPython reports an error here.

@Shaikh-Ubaid Shaikh-Ubaid deleted the numpy_size_test_case branch May 12, 2023 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants