djl
djl copied to clipboard
An Engine-Agnostic Deep Learning Framework in Java
* Refactors some model-building code to use less lambda blocks * Thus, improve output of Blocks.describe() * Introduce new Blocks.describeAsTensorflow() method to describe DJL block as tensorflow keras sequential /...
## Description ## Brief description of what this PR is about - If this change is a backward incompatible change, why must this change be made? - Interesting edge cases...
## Description 0.27调用tensorflow的pb模型崩溃(可以加载模型,推理时崩溃) Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j org.tensorflow.internal.c_api.global.tensorflow.TF_SessionRun(Lorg/tensorflow/internal/c_api/TF_Session;Lorg/tensorflow/internal/c_api/TF_Buffer;Lorg/tensorflow/internal/c_api/TF_Output;Lorg/bytedeco/javacpp/PointerPointer;ILorg/tensorflow/internal/c_api/TF_Output;Lorg/bytedeco/javacpp/PointerPointer;ILorg/bytedeco/javacpp/PointerPointer;ILorg/tensorflow/internal/c_api/TF_Buffer;Lorg/tensorflow/internal/c_api/TF_Status;)V+0 j ai.djl.tensorflow.engine.javacpp.JavacppUtils.runSession(Lorg/tensorflow/internal/c_api/TF_Session;Lorg/tensorflow/proto/framework/RunOptions;[Lorg/tensorflow/internal/c_api/TF_Tensor;[Lorg/tensorflow/internal/c_api/TF_Operation;[I[Lorg/tensorflow/internal/c_api/TF_Operation;[I[Lorg/tensorflow/internal/c_api/TF_Operation;)[Lorg/tensorflow/internal/c_api/TF_Tensor;+270 j ai.djl.tensorflow.engine.TfSymbolBlock.forwardInternal(Lai/djl/training/ParameterStore;Lai/djl/ndarray/NDList;ZLai/djl/util/PairList;)Lai/djl/ndarray/NDList;+202 j ai.djl.nn.AbstractBaseBlock.forward(Lai/djl/training/ParameterStore;Lai/djl/ndarray/NDList;ZLai/djl/util/PairList;)Lai/djl/ndarray/NDList;+36 j ai.djl.nn.Block.forward(Lai/djl/training/ParameterStore;Lai/djl/ndarray/NDList;Z)Lai/djl/ndarray/NDList;+5 j ai.djl.inference.Predictor.predictInternal(Lai/djl/translate/TranslatorContext;Lai/djl/ndarray/NDList;)Lai/djl/ndarray/NDList;+21 j ai.djl.inference.Predictor.batchPredict(Ljava/util/List;)Ljava/util/List;+133 j ai.djl.inference.Predictor.predict(Ljava/lang/Object;)Ljava/lang/Object;+5 j com.fly.ai.wdtag.WdTagService.detect(Lai/djl/modality/cv/Image;)Lai/djl/modality/Classifications;+17 j...
DJL version 0.27.0 When a null-value sequence is passed to a text-encoder model, the JAVA process crashes. Error output: ``` thread '' panicked at src/lib.rs:217:14: Couldn't get java string!: NullPtr("get_string...
## Description ## Brief description of what this PR is about - If this change is a backward incompatible change, why must this change be made? - Interesting edge cases...
## Description ## Update the version for DJL to 0.29.0~Snapshot and update doc READMEs to 0.28.0 - If this change is a backward incompatible change, why must this change be...
When running the code from the footwear_classification demo ``` public final class Training { private static final int BATCH_SIZE = 32; private static final int EPOCHS = 2; public static...
Hello, The Adaline perceptron is a model used for binary classification. It's a very simple model, based on a linear regression (with MSE loss) and a gradient descend. The only...
It looks like FLOAT16 has not been supported by now ``` Caused by: java.lang.UnsupportedOperationException: type is not supported: FLOAT16 at ai.djl.onnxruntime.engine.OrtUtils.toDataType(OrtUtils.java:101) at ai.djl.onnxruntime.engine.OrtNDArray.getDataType(OrtNDArray.java:65) at ai.djl.onnxruntime.engine.OrtNDArray.toByteBuffer(OrtNDArray.java:121) at ai.djl.pytorch.engine.PtNDManager.from(PtNDManager.java:55) at ai.djl.pytorch.engine.PtNDManager.from(PtNDManager.java:31) at...
## Description ## Brief description of what this PR is about - If this change is a backward incompatible change, why must this change be made? - Interesting edge cases...