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

[doc] Immutable array output from InferenceMode PyTorch #1822

Merged
merged 3 commits into from
Jul 22, 2022

Conversation

KexinFeng
Copy link
Contributor

@KexinFeng KexinFeng commented Jul 21, 2022

This doc change originates from issue 1774. It reminds user that the output array during inference mode is immutable. When they need to change the output NDArray in a implementation of postProcessor, they can try array.duplicate() as suggested in issue 1774.

@codecov-commenter
Copy link

codecov-commenter commented Jul 21, 2022

Codecov Report

Merging #1822 (75617a8) into master (bb5073f) will decrease coverage by 2.43%.
The diff coverage is 65.02%.

@@             Coverage Diff              @@
##             master    #1822      +/-   ##
============================================
- Coverage     72.08%   69.65%   -2.44%     
- Complexity     5126     5503     +377     
============================================
  Files           473      524      +51     
  Lines         21970    24339    +2369     
  Branches       2351     2652     +301     
============================================
+ Hits          15838    16954    +1116     
- Misses         4925     6076    +1151     
- Partials       1207     1309     +102     
Impacted Files Coverage Δ
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% <ø> (ø)
...rc/main/java/ai/djl/modality/cv/output/Joints.java 71.42% <ø> (ø)
.../main/java/ai/djl/modality/cv/output/Landmark.java 100.00% <ø> (ø)
...main/java/ai/djl/modality/cv/output/Rectangle.java 72.41% <0.00%> (ø)
...i/djl/modality/cv/translator/BigGANTranslator.java 21.42% <0.00%> (-5.24%) ⬇️
...odality/cv/translator/BigGANTranslatorFactory.java 33.33% <0.00%> (+8.33%) ⬆️
...nslator/InstanceSegmentationTranslatorFactory.java 14.28% <0.00%> (-3.90%) ⬇️
.../cv/translator/SemanticSegmentationTranslator.java 0.00% <0.00%> (ø)
.../cv/translator/StyleTransferTranslatorFactory.java 40.00% <ø> (ø)
... and 417 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 654d1cd...75617a8. Read the comment docs.

@lanking520 lanking520 merged commit 77df911 into deepjavalibrary:master Jul 22, 2022
KexinFeng added a commit to KexinFeng/djl that referenced this pull request Jul 22, 2022
…ary#1822)

* immutable array from InferenceMode PyTorch

* javadoc

* javadoc
@KexinFeng KexinFeng deleted the InferenceMode branch August 25, 2022 00: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.

3 participants