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

Adds Device.getDevices() for all Device #2820

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

zachgk
Copy link
Contributor

@zachgk zachgk commented Oct 26, 2023

This improves upon the creation of MultiDevice in #2819 by moving the getDevices function to the main Device class. This can simplify the usage of something which is potentially a MultiDevice and make it easier to check for the presence of a MultiDevice.

This improves upon the creation of MultiDevice in deepjavalibrary#2819 by moving the getDevices
function to the main Device class. This can simplify the usage of something
which is potentially a MultiDevice and make it easier to check for the presence
of a MultiDevice.
@zachgk zachgk requested review from frankfliu and a team as code owners October 26, 2023 01:03
@codecov-commenter
Copy link

codecov-commenter commented Oct 26, 2023

Codecov Report

Attention: 1365 lines in your changes are missing coverage. Please review.

Comparison is base (bb5073f) 72.08% compared to head (e9f3425) 72.32%.
Report is 901 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2820      +/-   ##
============================================
+ Coverage     72.08%   72.32%   +0.23%     
- Complexity     5126     7160    +2034     
============================================
  Files           473      708     +235     
  Lines         21970    31918    +9948     
  Branches       2351     3315     +964     
============================================
+ Hits          15838    23085    +7247     
- Misses         4925     7255    +2330     
- Partials       1207     1578     +371     
Files Coverage Δ
...ava/ai/djl/inference/streaming/StreamingBlock.java 100.00% <100.00%> (ø)
api/src/main/java/ai/djl/metric/Dimension.java 100.00% <100.00%> (ø)
api/src/main/java/ai/djl/metric/Unit.java 100.00% <100.00%> (ø)
api/src/main/java/ai/djl/modality/audio/Audio.java 100.00% <100.00%> (ø)
api/src/main/java/ai/djl/modality/cv/Image.java 69.23% <ø> (-4.11%) ⬇️
...rc/main/java/ai/djl/modality/cv/MultiBoxPrior.java 76.00% <ø> (ø)
...ava/ai/djl/modality/cv/output/DetectedObjects.java 96.29% <100.00%> (+1.29%) ⬆️
...rc/main/java/ai/djl/modality/cv/output/Joints.java 71.42% <100.00%> (ø)
.../main/java/ai/djl/modality/cv/output/Landmark.java 100.00% <ø> (ø)
...i/djl/modality/cv/transform/RandomResizedCrop.java 94.11% <100.00%> (+5.22%) ⬆️
... and 225 more

... and 379 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zachgk zachgk merged commit 4b392f1 into deepjavalibrary:master Jan 9, 2024
5 checks passed
@zachgk zachgk deleted the getDevices branch January 9, 2024 18:59
frankfliu pushed a commit that referenced this pull request Apr 26, 2024
This improves upon the creation of MultiDevice in #2819 by moving the getDevices
function to the main Device class. This can simplify the usage of something
which is potentially a MultiDevice and make it easier to check for the presence
of a MultiDevice.
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.

None yet

3 participants