-
Notifications
You must be signed in to change notification settings - Fork 55
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
Load functionality for multiple .npy files #1388
Load functionality for multiple .npy files #1388
Conversation
Thank you for the PR! |
heat/core/manipulations.py
Outdated
@@ -1,6 +1,7 @@ | |||
""" | |||
Manipulation operations for (potentially distributed) `DNDarray`s. | |||
""" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this has been added unintentionally
…_multiple_files_into_one_DNDarray
Thank you for the PR! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1388 +/- ##
==========================================
+ Coverage 91.88% 91.91% +0.02%
==========================================
Files 80 80
Lines 11916 11942 +26
==========================================
+ Hits 10949 10976 +27
+ Misses 967 966 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
heat/core/tests/test_io.py
Outdated
crea_array = np.concatenate(x, 0) | ||
np.save("data" + str(i), x) | ||
|
||
array1 = ht.load_npy_from_path("/home/nguy_t4/home/heat/heat/core/tests") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Der Pfad wird natürlich nicht gefunden, da die Tests auf den Runnern nicht auf deinem Rechner laufen... du musst hier einen relativen Pfad angeben, vermutlich /heat/core/tests
o.ä.
…opened by the function
…got only filename but not path
…_multiple_files_into_one_DNDarray
…iles_into_one_DNDarray' of github.com:helmholtz-analytics/heat into features/900-Improve_load-functionality_load_multiple_files_into_one_DNDarray
As the error
tells, comparing two numpy arrays In our case, however,
I have made these changes. |
…on one process only now
Thank you for the PR! |
…e created files after run
Thank you for the PR! |
Thank you for the PR! |
…iles_into_one_DNDarray' of github.com:helmholtz-analytics/heat into features/900-Improve_load-functionality_load_multiple_files_into_one_DNDarray
Thank you for the PR! |
Thank you for the PR! |
heat/core/tests/test_io.py
Outdated
np.save(os.path.join(os.getcwd(), "heat/datasets", "float_data"), x) | ||
ht.MPI_WORLD.Barrier() | ||
with self.assertRaises(RuntimeError): | ||
ht.load_npy_from_path("heat/datasets/npy_dummy", dtype=ht.int64, split=0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are loading the dummy file from the wrong directory or you saved it in the wrong directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx for the hint 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now it should work again
Thank you for the PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve to let full CI-matrix run (test combinations of different Python and PyTorch versions)
@mtar if you have time can you have a second look into this PR and review? (to follow the convention not to review own students' work) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve again to let CI-matrix run
Thank you for the PR! |
Co-authored-by: Michael Tarnawa <[email protected]>
for more information, see https://pre-commit.ci
Thank you for the PR! |
…_multiple_files_into_one_DNDarray
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approve to let CI run; also @mtar has reviewed yesterday already
Thank you for the PR! |
Due Diligence
Description
Many smaller .npy-files will be loaded at the same timeAdded to one big DNDarray
Issue/s resolved: #900
Changes proposed:
Type of change
New featureMemory requirements
Performance
Does this change modify the behaviour of other functions? If so, which?
no