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

[tensoflow] Add truncated-normal operation #1005

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

AzizZayed
Copy link
Contributor

Description

Add support for the Truncated Normal operation to TensorFlow only. An UnsupportedOperationException is thrown for all other engines.

import org.tensorflow.internal.c_api.TFE_Context;
import org.tensorflow.internal.c_api.TFE_TensorHandle;
import java.nio.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't use *, please update your IntelliJ settings.

@codecov-commenter
Copy link

Codecov Report

Merging #1005 (30b03f4) into master (8286930) will decrease coverage by 0.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1005      +/-   ##
============================================
- Coverage     70.02%   69.92%   -0.10%     
+ Complexity     5105     5101       -4     
============================================
  Files           504      504              
  Lines         22582    22601      +19     
  Branches       2366     2367       +1     
============================================
- Hits          15812    15803       -9     
- Misses         5503     5538      +35     
+ Partials       1267     1260       -7     
Impacted Files Coverage Δ
...pi/src/main/java/ai/djl/ndarray/BaseNDManager.java 53.46% <0.00%> (-0.54%) ⬇️
api/src/main/java/ai/djl/ndarray/NDManager.java 56.75% <0.00%> (-1.99%) ⬇️
...ain/java/ai/djl/tensorflow/engine/TfNDManager.java 79.36% <0.00%> (-11.79%) ⬇️
...gine/src/main/java/ai/djl/dlr/engine/DlrModel.java 53.12% <0.00%> (-3.13%) ⬇️
api/src/main/java/ai/djl/util/Platform.java 43.47% <0.00%> (-2.18%) ⬇️
...g/src/main/java/ai/djl/serving/util/Connector.java 55.40% <0.00%> (-1.36%) ⬇️
...ngine/src/main/java/ai/djl/mxnet/jna/LibUtils.java 42.23% <0.00%> (-1.25%) ⬇️
...djl/training/listener/LoggingTrainingListener.java 87.61% <0.00%> (-0.89%) ⬇️
...ne/src/main/java/ai/djl/mxnet/jna/StringArray.java 92.85% <0.00%> (ø)
... and 2 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 b0fe73a...30b03f4. Read the comment docs.

@frankfliu frankfliu merged commit 0aec8ca into deepjavalibrary:master Jun 10, 2021
AzizZayed added a commit to AzizZayed/djl that referenced this pull request Jun 15, 2021
commit 0092f8e
Author: Aziz Zayed <azayed01@gmail.com>
Date:   Tue Jun 15 08:22:51 2021 -0700

    Fixed truncated-normal bug

commit a6ded8c
Author: Aziz Zayed <azayed01@gmail.com>
Date:   Mon Jun 14 13:33:30 2021 -0700

    [pytorch] Add BigGAN demo

commit f145614
Merge: a8a1a9b ec8405b
Author: Abd-El-Aziz Zayed <48853777+AzizZayed@users.noreply.github.com>
Date:   Fri Jun 11 20:45:34 2021 -0700

    Merge branch 'deepjavalibrary:master' into master

commit ec8405b
Author: Abd-El-Aziz Zayed <48853777+AzizZayed@users.noreply.github.com>
Date:   Fri Jun 11 14:53:59 2021 -0700

    [pytorch] Add oneHot operator (deepjavalibrary#1014)

    [tensoflow] Add truncated normal operation

commit 50600fd
Author: Frank Liu <frankfliu2000@gmail.com>
Date:   Fri Jun 11 14:53:43 2021 -0700

    upgrade dependencies version (deepjavalibrary#1012)

    Change-Id: I709938f69f21096bc5cd29a24191f0f282dcbc97

commit 3379fd2
Author: Frank Liu <frankfliu2000@gmail.com>
Date:   Fri Jun 11 14:53:29 2021 -0700

    [serving] Fix flaky test (deepjavalibrary#1013)

    Change-Id: I13b89e04516c59a3d28ecafd49f4f808630b22fb

commit 23157fd
Author: Frank Liu <frankfliu2000@gmail.com>
Date:   Thu Jun 10 16:31:03 2021 -0700

    Enable spotbugs for java 11+ (deepjavalibrary#1010)

    Change-Id: I74effbf45492a5cf50e09ba8af0223d2b1bcb5a5

commit 4f38708
Author: Frank Liu <frankfliu2000@gmail.com>
Date:   Thu Jun 10 16:30:50 2021 -0700

    Fix model zoo test typo (deepjavalibrary#1009)

    Change-Id: I7c0109c6e5fc0ece16288082fd830718f20ad489

commit a8a1a9b
Merge: 77809f4 30b03f4
Author: Aziz Zayed <azayed01@gmail.com>
Date:   Thu Jun 10 15:16:05 2021 -0700

    Merge Truncated-Normal branch

commit 77809f4
Author: Frank Liu <frankfliu2000@gmail.com>
Date:   Thu Jun 10 14:07:43 2021 -0700

    Make model zoo test weekly (deepjavalibrary#1004)

    Change-Id: I1c73df17cb077b9ce8905fcc2fc8bbb37b9688d8

commit 0aec8ca
Author: Abd-El-Aziz Zayed <48853777+AzizZayed@users.noreply.github.com>
Date:   Thu Jun 10 12:46:16 2021 -0700

    [tensoflow] Add truncated normal operation (deepjavalibrary#1005)

commit 30b03f4
Author: Aziz Zayed <azayed01@gmail.com>
Date:   Wed Jun 9 01:40:33 2021 -0700

    [tensoflow] Add truncated normal operation

commit d8e7e1d
Author: Frank Liu <frankfliu2000@gmail.com>
Date:   Wed Jun 9 07:55:15 2021 -0700

    Fixes deepjavalibrary#999, hanlde UTF16 surrogate charactors properly. (deepjavalibrary#1003)

    Change-Id: I19e77cf5a8282bea901434041806eb102549ec0f

commit b0fe73a
Author: Frank Liu <frankfliu2000@gmail.com>
Date:   Tue Jun 8 17:56:19 2021 -0700

    [pytorch] Update load model jupyter notebook (deepjavalibrary#1002)

    Change-Id: I1889aa93d2002e6ce02c740d2d1d3517bf586760

commit 8286930
Author: Frank Liu <frankfliu2000@gmail.com>
Date:   Tue Jun 8 15:29:27 2021 -0700

    [tensorflow] fix optOption usage document (deepjavalibrary#1001)

    Change-Id: Ie044839cf082d63010a5c26d3f2f8833447919c6

commit a26f5b2
Author: Abd-El-Aziz Zayed <48853777+AzizZayed@users.noreply.github.com>
Date:   Tue Jun 8 15:29:10 2021 -0700

    Updated PyTorch Docs  (deepjavalibrary#1000)

    * Added auto softmax metadata for action_recognition

    * Update PyTorch Docs

commit e6890f9
Author: Lanking <qingla@amazon.com>
Date:   Mon Jun 7 18:25:19 2021 -0700

    upgrade xgboost (deepjavalibrary#993)

commit a0dcf3a
Author: Lanking <qingla@amazon.com>
Date:   Mon Jun 7 18:25:12 2021 -0700

    bump up onnx runtime version (deepjavalibrary#992)
@AzizZayed AzizZayed deleted the truncated-normal branch June 18, 2021 00:33
Lokiiiiii pushed a commit to Lokiiiiii/djl that referenced this pull request Oct 10, 2023
* add error handling for rolling batch

* add some fixes

* Handle rolling batch error case

---------

Co-authored-by: Frank Liu <frankfliu2000@gmail.com>
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