Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4a52ddc

Browse files
authored
Update to DJL 0.20.0 (#190)
* Update to DJL 0.20.0 * Fix NDArray.toDebugString() error
1 parent 4763055 commit 4a52ddc

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

‎chapter_installation/index.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,12 @@
127127
"\n",
128128
"```java\n",
129129
"// Add the maven dependencies\n",
130-
"%maven ai.djl:api:0.19.0\n",
130+
"%maven ai.djl:api:0.20.0\n",
131131
"%maven org.slf4j:slf4j-simple:2.0.1\n",
132132
" \n",
133133
"// See https://github.com/deepjavalibrary/djl/blob/master/mxnet/mxnet-engine/README.md\n",
134134
"// for more MXNet library selection options\n",
135-
"%maven ai.djl.mxnet:mxnet-engine:0.19.0\n",
135+
"%maven ai.djl.mxnet:mxnet-engine:0.20.0\n",
136136
"```\n",
137137
"\n",
138138
"To avoid repeatedly adding maven dependencies and import required packages, we just load a predefined jupyter notebook: \n",

‎chapter_preliminaries/lookup-api.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"\n",
6161
"For more specific instructions on how to use a given function or class, we can click the desired function or go to it directly by scrolling down and searching for it. As an example, let us explore the usage instructions for `NDManager`'s `ones` function which takes a `Shape` as a parameter. \n",
6262
"\n",
63-
"https://javadoc.io/static/ai.djl/api/0.19.0/ai/djl/ndarray/NDManager.html#ones(ai.djl.ndarray.types.Shape)\n"
63+
"https://javadoc.io/static/ai.djl/api/0.20.0/ai/djl/ndarray/NDManager.html#ones(ai.djl.ndarray.types.Shape)\n"
6464
]
6565
},
6666
{

‎chapter_recurrent-neural-networks/language-models-and-dataset.ipynb‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@
477477
"}\n",
478478
"\n",
479479
"for (NDList pair : seqDataIterRandom(mySeq, 2, 5, manager)) {\n",
480-
" System.out.println(\"X:\\n\" + pair.get(0).toDebugString(50, 50, 50, 50));\n",
481-
" System.out.println(\"Y:\\n\" + pair.get(1).toDebugString(50, 50, 50, 50));\n",
480+
" System.out.println(\"X:\\n\" + pair.get(0).toDebugString(50, 50, 50, 50, true));\n",
481+
" System.out.println(\"Y:\\n\" + pair.get(1).toDebugString(50, 50, 50, 50, true));\n",
482482
"}"
483483
]
484484
},
@@ -555,8 +555,8 @@
555555
"outputs": [],
556556
"source": [
557557
"for (NDList pair : seqDataIterSequential(mySeq, 2, 5, manager)) {\n",
558-
" System.out.println(\"X:\\n\" + pair.get(0).toDebugString(10, 10, 10, 10));\n",
559-
" System.out.println(\"Y:\\n\" + pair.get(1).toDebugString(10, 10, 10, 10));\n",
558+
" System.out.println(\"X:\\n\" + pair.get(0).toDebugString(10, 10, 10, 10, true));\n",
559+
" System.out.println(\"Y:\\n\" + pair.get(1).toDebugString(10, 10, 10, 10, true));\n",
560560
"}"
561561
]
562562
},

‎debug/build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ configure(this) {
2828
apply from: file("tools/gradle/java-formatter.gradle")
2929
}
3030

31-
def djl_version = "0.19.0"
31+
def djl_version = "0.20.0"
3232

3333
dependencies {
3434
implementation platform("ai.djl:bom:${djl_version}")

‎homework/solutions/homework1_sol.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
"source": [
3333
"%mavenRepo snapshots https://oss.sonatype.org/content/repositories/snapshots/\n",
3434
"\n",
35-
"%maven ai.djl:api:0.19.0\n",
35+
"%maven ai.djl:api:0.20.0\n",
3636
"%maven org.slf4j:slf4j-api:2.0.1\n",
3737
"%maven org.slf4j:slf4j-simple:2.0.1\n",
3838
"\n",
39-
"%maven ai.djl.mxnet:mxnet-engine:0.19.0"
39+
"%maven ai.djl.mxnet:mxnet-engine:0.20.0"
4040
]
4141
},
4242
{

‎utils/djl-imports.ipynb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"metadata": {},
77
"outputs": [],
88
"source": [
9-
"%maven ai.djl:basicdataset:0.19.0\n",
10-
"%maven ai.djl.mxnet:mxnet-engine:0.19.0\n",
9+
"%maven ai.djl:basicdataset:0.20.0\n",
10+
"%maven ai.djl.mxnet:mxnet-engine:0.20.0\n",
1111
"%maven org.slf4j:slf4j-simple:2.0.1"
1212
]
1313
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /