-
Notifications
You must be signed in to change notification settings - Fork 66
fix #925: ht.nonzero() returns tuple of 1-D arrays instead of n-D arrays #937
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
ClaudiaComito
merged 29 commits into
helmholtz-analytics:914_adv-indexing-outshape-outsplit
from
Mystic-Slice:NonzeroFunction
Apr 8, 2022
Merged
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f7adcf2
Create ci.yaml
mtar 2ab82b5
Update ci.yaml
mtar f261e8e
Update ci.yaml
mtar 9b863a7
Create CITATION.cff
mtar 2b2622a
Update CITATION.cff
mtar a15b299
Update ci.yaml
mtar 8910bf7
Update ci.yaml
mtar f8dc8b8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 767eabc
Delete pre-commit.yml
mtar 3cd1d33
Merge branch 'main' into enhancement/203-ghactions-matrix
mtar 61cef7f
Update ci.yaml
mtar 74b1a30
Update CITATION.cff
mtar 93cd831
Update tutorial.ipynb
mtar 2a25d22
Merge pull request #931 from helmholtz-analytics/doc/901-tutorial_update
coquelin77 e154ab9
Merge branch 'main' into docs/927-citation
coquelin77 7c57942
Merge pull request #929 from helmholtz-analytics/docs/927-citation
coquelin77 114e74e
Merge branch 'main' into enhancement/203-ghactions-matrix
coquelin77 14aae08
Merge pull request #924 from helmholtz-analytics/enhancement/203-ghac…
coquelin77 dd1b83d
Delete logo_heAT.pdf
Markus-Goetz 7e6ad4a
ht.nonzero() returns tuple of 1-D arrays instead of n-D arrays
Mystic-Slice aeb5b6e
Updated documentation and Unit-tests
Mystic-Slice 03e1287
Merge branch '914_adv-indexing-outshape-outsplit' into NonzeroFunction
ClaudiaComito 420f064
replace x.larray with local_x
ClaudiaComito a00ed61
Code fixes
Mystic-Slice d4a8813
Fix return type of nonzero function and gout value
Mystic-Slice 67fcdc8
Made sure DNDarray meta-data is available to the tuple members
Mystic-Slice 39103fa
Transpose before if-branching + adjustments to accomodate it
Mystic-Slice 3ed205c
Fixed global shape assignment
Mystic-Slice 70dded6
Updated changelog
Mystic-Slice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: ci | ||
|
|
||
| on: | ||
| pull_request_review: | ||
| types: [submitted] | ||
|
|
||
| jobs: | ||
| approved: | ||
| if: github.event.review.state == 'approved' | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| py-version: | ||
| - 3.7 | ||
| - 3.8 | ||
| mpi: [ 'openmpi' ] | ||
| install-options: [ '.', '.[hdf5,netcdf]' ] | ||
| pytorch-version: | ||
| - 'torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio==0.7.2' | ||
| - 'torch==1.8.1+cpu torchvision==0.9.1+cpu torchaudio==0.8.1' | ||
| - 'torch==1.9.0+cpu torchvision==0.10.0+cpu torchaudio==0.9.0' | ||
|
|
||
|
|
||
| name: Python ${{ matrix.py-version }} with ${{ matrix.pytorch-version }}; options ${{ matrix.install-options }} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Setup MPI | ||
| uses: mpi4py/setup-mpi@v1 | ||
| with: | ||
| mpi: ${{ matrix.mpi }} | ||
| - name: Use Python ${{ matrix.py-version }} | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: ${{ matrix.py-version }} | ||
| architecture: x64 | ||
| - name: Test | ||
| run: | | ||
| pip install pytest | ||
| pip install ${{ matrix.pytorch-version }} -f https://download.pytorch.org/whl/torch_stable.html | ||
| pip install ${{ matrix.install-options }} | ||
| mpirun -n 3 pytest heat/ | ||
| mpirun -n 4 pytest heat/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| cff-version: 1.2.0 | ||
| message: "If you use this software, please cite it as below." | ||
| authors: | ||
| - family-names: "Götz" | ||
| given-names: "Markus" | ||
| - family-names: "Debus" | ||
| given-names: "Charlotte" | ||
| - family-names: "Coquelin" | ||
| given-names: "Daniel" | ||
| - family-names: "Krajsek" | ||
| given-names: "Kai" | ||
| - family-names: "Comito" | ||
| given-names: "Claudia" | ||
| - family-names: "Knechtges" | ||
| given-names: "Philipp" | ||
| - family-names: "Hagemeier" | ||
| given-names: "Björn" | ||
| - family-names: "Tarnawa" | ||
| given-names: "Michael" | ||
| - family-names: "Hanselmann" | ||
| given-names: "Simon" | ||
| - family-names: "Siggel" | ||
| given-names: "Martin" | ||
| - family-names: "Basermann" | ||
| given-names: "Achim" | ||
| - family-names: "Streit" | ||
| given-names: "Achim" | ||
| title: "Heat - Helmholtz Analytics Toolkit" | ||
| version: 1.1.0 | ||
| date-released: 2021-09-21 | ||
| url: "https://github.com/helmholtz-analytics/heat" | ||
| preferred-citation: | ||
| type: conference-paper | ||
| authors: | ||
| - family-names: "Götz" | ||
| given-names: "Markus" | ||
| - family-names: "Debus" | ||
| given-names: "Charlotte" | ||
| - family-names: "Coquelin" | ||
| given-names: "Daniel" | ||
| - family-names: "Krajsek" | ||
| given-names: "Kai" | ||
| - family-names: "Comito" | ||
| given-names: "Claudia" | ||
| - family-names: "Knechtges" | ||
| given-names: "Philipp" | ||
| - family-names: "Hagemeier" | ||
| given-names: "Björn" | ||
| - family-names: "Tarnawa" | ||
| given-names: "Michael" | ||
| - family-names: "Hanselmann" | ||
| given-names: "Simon" | ||
| - family-names: "Siggel" | ||
| given-names: "Martin" | ||
| - family-names: "Basermann" | ||
| given-names: "Achim" | ||
| - family-names: "Streit" | ||
| given-names: "Achim" | ||
| title: "HeAT -- a Distributed and GPU-accelerated Tensor Framework for Data Analytics" | ||
| year: 2020 | ||
| collection-title: "2020 IEEE International Conference on Big Data (IEEE Big Data 2020)" | ||
| collection-doi: 10.1109/BigData50022.2020.9378050 | ||
| conference: | ||
| name: 2020 IEEE International Conference on Big Data (IEEE Big Data 2020) | ||
| date-start: 2020-12-10 | ||
| date-end: 2020-12-13 | ||
| start: 276 | ||
| end: 287 |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
gshapeneeds to be the global size of the array (you calculated it with theallreducecall),dim_indicesare local slices of the array.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.
Ahh makes sense....will make the change