Repository: deepjavalibrary/djl
Pull request #1474 (2022-01-18 21:19:10)

Bump up version to 0.16.0
Change-Id: Ib5fb28284b4a6c8dfb0d3ef64e4072059a8e2ef9

## 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 to note here



Patch:
diff --git a/api/README.md b/api/README.md
index f8b23826a..6139483c5 100644
--- a/api/README.md
+++ b/api/README.md
@@ -45,7 +45,7 @@ For testing the current nightly build, use the following:
 <dependency>
     <groupId>ai.djl</groupId>
     <artifactId>api</artifactId>
-    <version>0.15.0-SNAPSHOT</version>
+    <version>0.16.0-SNAPSHOT</version>
 </dependency>
 ```
 
diff --git a/examples/pom.xml b/examples/pom.xml
index 548de67e7..4dd630bce 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -5,12 +5,12 @@
 
     <groupId>ai.djl</groupId>
     <artifactId>examples</artifactId>
-    <version>0.15.0-SNAPSHOT</version>
+    <version>0.16.0-SNAPSHOT</version>
 
     <properties>
         <maven.compiler.source>1.8</maven.compiler.source>
         <maven.compiler.target>1.8</maven.compiler.target>
-        <djl.version>0.15.0-SNAPSHOT</djl.version>
+        <djl.version>0.16.0-SNAPSHOT</djl.version>
         <exec.mainClass>ai.djl.examples.inference.ObjectDetection</exec.mainClass>
     </properties>
 
diff --git a/extensions/benchmark/build.gradle b/extensions/benchmark/build.gradle
index af214148d..fe3a54aa3 100644
--- a/extensions/benchmark/build.gradle
+++ b/extensions/benchmark/build.gradle
@@ -1,6 +1,6 @@
 plugins {
     id 'application'
-    id "nebula.ospackage" version "8.5.6"
+    id "nebula.ospackage" version "9.0.0"
 }
 
 boolean isRelease = project.hasProperty("release") || project.hasProperty("staging")
diff --git a/extensions/benchmark/snapcraft/snapcraft.yaml b/extensions/benchmark/snapcraft/snapcraft.yaml
index 64e3d2bad..b6409f090 100644
--- a/extensions/benchmark/snapcraft/snapcraft.yaml
+++ b/extensions/benchmark/snapcraft/snapcraft.yaml
@@ -1,5 +1,5 @@
 name: djlbench
-version: '0.14.0'
+version: '0.15.0'
 title: DJL Benhmark
 license: Apache-2.0
 summary: A machine learning benchmarking toolkit
diff --git a/gradle.properties b/gradle.properties
index 6848c7ff6..cfaecf423 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -7,7 +7,7 @@ systemProp.org.gradle.internal.http.connectionTimeout=60000
 # FIXME: Workaround gradle publish issue: https://github.com/gradle/gradle/issues/11308
 systemProp.org.gradle.internal.publish.checksums.insecure=true
 
-djl_version=0.15.0
+djl_version=0.16.0
 mxnet_version=1.8.0
 pytorch_version=1.10.0
 tensorflow_version=2.7.0


Test patch:
diff --git a/integration/src/main/java/ai/djl/integration/tests/ndarray/NDArrayElementArithmeticOpTest.java b/integration/src/main/java/ai/djl/integration/tests/ndarray/NDArrayElementArithmeticOpTest.java
index 43dbb72f8..d52a1a215 100644
--- a/integration/src/main/java/ai/djl/integration/tests/ndarray/NDArrayElementArithmeticOpTest.java
+++ b/integration/src/main/java/ai/djl/integration/tests/ndarray/NDArrayElementArithmeticOpTest.java
@@ -55,7 +55,7 @@ public class NDArrayElementArithmeticOpTest {
             array1 = manager.create(new float[] {x1, x1});
             array2 = manager.create(x2);
             NDArray expected = manager.create(new float[] {y, y});
-            Assert.assertEquals(arrayArithmeticOp.apply(array1, array2), expected);
+            Assertions.assertAlmostEquals(arrayArithmeticOp.apply(array1, array2), expected);
 
             // test zero-dim with zero-dim
             array1 = manager.create(new Shape(4, 0, 1));
@@ -119,7 +119,7 @@ public class NDArrayElementArithmeticOpTest {
         float x2 = 3f;
         NDArray ndArray = manager.create(x1);
         NDArray result = arrayArithmeticOp.apply(x2, ndArray);
-        Assert.assertEquals(result.getFloat(), arithmeticOp.apply(x2, x1).floatValue());
+        Assertions.assertAlmostEquals(result.getFloat(), arithmeticOp.apply(x2, x1));
         if (inplace) {
             Assert.assertSame(ndArray, result);
         } else {