Skip to content

Commit 57a99ad

Browse files
authored
Merge pull request #1023 from eclipse/ag_snapshot-updates
Update versions for snapshot testing
2 parents 5e9d1f6 + f744cf3 commit 57a99ad

File tree

62 files changed

+968
-3052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+968
-3052
lines changed

.github/workflows/example-sanity-check.yml

+10-21
Original file line numberDiff line numberDiff line change
@@ -25,39 +25,28 @@ jobs:
2525
with:
2626
access_token: ${{ github.token }}
2727
- uses: actions/checkout@v2
28-
- uses: ./.github/actions/update-deps-linux
29-
- uses: ./.github/actions/install-protobuf-linux
30-
- uses: ./.github/actions/install-cmake-linux
3128
- name: Set up Java for publishing to GitHub Packages
3229
uses: actions/setup-java@v1
3330
with:
3431
java-version: 1.8
35-
server-id: sonatype-nexus-snapshots
36-
server-username: MAVEN_USERNAME
37-
server-password: MAVEN_PASSWORD
38-
gpg-private-key: ${{ secrets.SONATYPE_GPG_KEY }}
39-
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4032
- name: Build on linux-arm64
4133
shell: bash
4234
env:
4335
DEBIAN_FRONTEND: noninteractive
4436
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
DEPLOY: 1
46-
BUILD_USING_MAVEN: 1
47-
TARGET_OS: linux
48-
CURRENT_TARGET: arm64
49-
PUBLISH_TO: ossrh
50-
DEPLOY_TO: ossrh
51-
MAVEN_USERNAME: ${{ secrets.SONATYPE_USER_1 }}
52-
MAVEN_PASSWORD: ${{ secrets.SONATYPE_USER1_PASS }}
53-
MAVEN_GPG_PASSPHRASE: ${{ secrets.PACKAGES_GPG_PASS }}
54-
5537
run: |
5638
mvn --version
57-
cmake --version
58-
protoc --version
5939
for folder in `ls`; do
60-
mvn clean test
40+
if [[ -d "$folder" ]]; then
41+
cd "$folder"
42+
if test -f "pom.xml"; then
43+
mvn clean test
44+
fi
45+
cd ..
46+
fi
47+
48+
49+
6150
done
6251
6352

.github/workflows/run-sanity-checks.sh

Whitespace-only changes.

README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ We do not monitor the github issues of this repository very often.
2424
The **Eclipse Deeplearning4J** (DL4J) ecosystem is a set of projects intended to support all the needs of a JVM based deep learning application. This means starting with the raw data, loading and preprocessing it from wherever and whatever format it is in to building and tuning a wide variety of simple and complex deep learning networks.
2525

2626
The DL4J stack comprises of:
27-
- **DL4J**: High level API to build MultiLayerNetworks and ComputationGraphs with a variety of layers, including custom ones. Supports importing Keras models from h5, including tf.keras models (as of 1.0.0-beta7) and also supports distributed training on Apache Spark
27+
- **DL4J**: High level API to build MultiLayerNetworks and ComputationGraphs with a variety of layers, including custom ones. Supports importing Keras models from h5, including tf.keras models (as of 1.0.0-M1.1) and also supports distributed training on Apache Spark
2828
- **ND4J**: General purpose linear algebra library with over 500 mathematical, linear algebra and deep learning operations. ND4J is based on the highly-optimized C++ codebase LibND4J that provides CPU (AVX2/512) and GPU (CUDA) support and acceleration by libraries such as OpenBLAS, OneDNN (MKL-DNN), cuDNN, cuBLAS, etc
2929
- **SameDiff** : Part of the ND4J library, SameDiff is our automatic differentiation / deep learning framework. SameDiff uses a graph-based (define then run) approach, similar to TensorFlow graph mode. Eager graph (TensorFlow 2.x eager/PyTorch) graph execution is planned. SameDiff supports importing TensorFlow frozen model format .pb (protobuf) models. Import for ONNX, TensorFlow SavedModel and Keras models are planned. Deeplearning4j also has full SameDiff support for easily writing custom layers and loss functions.
3030
- **DataVec**: ETL for machine learning data in a wide variety of formats and files (HDFS, Spark, Images, Video, Audio, CSV, Excel etc)
@@ -40,6 +40,17 @@ Users can also refer to the [simple sample project provided](./mvn-project-templ
4040

4141
Build tools are considered standard software engineering best practice. Besides this the complexities posed by the projects in the DL4J ecosystem make dependencies too difficult to manage manually. All the projects in the DL4J ecosystem can be used with other build tools like Gradle, SBT etc. More information on that can be found [here](https://deeplearning4j.konduit.ai/config/buildtools).
4242

43+
## Support
44+
45+
For help with the examples, please go to our [support forum](https://community.konduit.ai/)
46+
47+
Note for users of 1.0.0-beta7 and prior, some examples and modules have been removed to reflect
48+
changes in the framework's direction. Please see and comment on our post [here](https://community.konduit.ai/t/upcoming-removal-of-modules-and-roadmap-changes/1240)
49+
50+
If you would like a workaround for something you may be missing,
51+
please feel free to post on the forums, and we will do what we can to help you.
52+
53+
4354
## Example Content
4455
Projects are based on what functionality the included examples demonstrate to the user and not necessarily which library in the DL4J stack the functionality lives in.
4556

@@ -69,9 +80,6 @@ This project contains a set of examples that demonstrate how raw data in various
6980
- [nd4j-ndarray-examples](nd4j-ndarray-examples/README.md)
7081
This project contains a set of examples that demonstrate how to manipulate NDArrays. The functionality of ND4J demonstrated here can be likened to NumPy.
7182

72-
- [arbiter-examples](arbiter-examples/README.md)
73-
This project contains a set of examples that demonstrate usage of the Arbiter library for hyperparameter tuning of Deeplearning4J neural networks.
74-
7583
- [rl4j-examples](rl4j-examples/README.md)
7684
This project contains examples of using RL4J, the reinforcement learning library in DL4J.
7785

android-examples/README.md

-8
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@ The build configuration for Android can be found in [app/build.gradle](./app/bui
88

99
[Go back](../README.md) to the main repository page to explore other features/functionality of the **Eclipse Deeplearning4J** ecosystem. File an issue [here](https://github.com/eclipse/deeplearning4j-examples/issues) to request new features.
1010

11-
# Known Issues
12-
Due to an unfortunately timed change, the 1.0.0-beta7 release doesn't work well with most Android devices. For this reason, this example project uses the SNAPSHOT version.
13-
14-
Again unfortunately, gradle has issues retrieving SNAPSHOT versions when combined with classifiers, which are used here to retrieve only the android specific backend dependencies.
15-
16-
If you want to run this example locally, you will therefore need to have Maven installed in order to download those specific dependencies.
17-
18-
Once you have installed Maven, you will need to run the following commands from the command line to download the correct android backend files:
1911

2012
```
2113
mvn dependency:get -DremoteRepositories=snapshots::::https://oss.sonatype.org/content/repositories/snapshots -Dartifact=org.nd4j:nd4j-native:1.0.0-SNAPSHOT:jar:android-arm

android-examples/app/build.gradle

+11-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
versionCode 1
1212
versionName "1.0"
1313

14-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1515
}
1616

1717
buildTypes {
@@ -27,10 +27,10 @@ android {
2727
}
2828

2929
dependencies {
30-
def dl4jVersion = '1.0.0-beta7'
31-
def openblasVersion = '0.3.9-1.5.3'
32-
def opencvVersion = '4.3.0-1.5.3'
33-
def leptonicaVersion = '1.79.0-1.5.3'
30+
def dl4jVersion = '1.0.0-M1.1'
31+
def openblasVersion = '0.3.10-1.5.5'
32+
def opencvVersion = '4.5.1-1.5.5'
33+
def leptonicaVersion = '1.80.0-1.5.5'
3434

3535
implementation fileTree(dir: 'libs', include: ['*.jar'])
3636

@@ -45,13 +45,14 @@ dependencies {
4545
exclude group: 'org.bytedeco', module: 'leptonica-platform'
4646
exclude group: 'org.bytedeco', module: 'hdf5-platform'
4747
exclude group: 'org.nd4j', module: 'nd4j-base64'
48+
exclude group: 'org.nd4j', module: 'nd4j-api'
4849
}
4950

5051
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion
51-
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-arm"
52-
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-arm64"
53-
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-x86"
54-
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-x86_64"
52+
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-arm"
53+
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-arm64"
54+
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-x86"
55+
implementation group: 'org.nd4j', name: 'nd4j-native', version: dl4jVersion, classifier: "android-x86_64"
5556
implementation group: 'org.bytedeco', name: 'openblas', version: openblasVersion
5657
implementation group: 'org.bytedeco', name: 'openblas', version: openblasVersion, classifier: "android-arm"
5758
implementation group: 'org.bytedeco', name: 'openblas', version: openblasVersion, classifier: "android-arm64"
@@ -69,4 +70,4 @@ dependencies {
6970
implementation group: 'org.bytedeco', name: 'leptonica', version: leptonicaVersion, classifier: "android-x86_64"
7071

7172
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.4'
72-
}
73+
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.androidDl4jClassifier;
1+
package com.example.androidclassifier;
22

33
import android.content.Context;
44

Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.example.androidDl4jClassifier">
3+
package="com.example.androidclassifier">
44

55
<application
66
android:allowBackup="true"
@@ -10,7 +10,7 @@
1010
android:supportsRtl="true"
1111
android:theme="@style/Theme.AppCompat.Light.DarkActionBar"
1212
android:fullBackupContent="@xml/backup_descriptor">
13-
<activity android:name="com.example.androidDl4jClassifier.MainActivity">
13+
<activity android:name="com.example.org.deeplearning4j.examples.androidclassifier.MainActivity">
1414
<intent-filter>
1515
<action android:name="android.intent.action.MAIN" />
1616

@@ -19,4 +19,4 @@
1919
</activity>
2020
</application>
2121

22-
</manifest>
22+
</manifest>

android-examples/app/src/main/java/com/example/androidDl4jClassifier/MainActivity.java renamed to android-examples/app/src/main/java/org/deeplearning4j/examples/androidclassifier/MainActivity.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
package com.example.androidDl4jClassifier;
1+
package org.deeplearning4j.examples.androidclassifier;
22

33
import androidx.appcompat.app.AppCompatActivity;
44

55
import android.os.Bundle;
66
import android.view.Menu;
77
import android.view.MenuItem;
8+
import com.example.androidclassifier.R;
89

910

1011
public class MainActivity extends AppCompatActivity {

android-examples/app/src/main/java/com/example/androidDl4jClassifier/ScatterView.java renamed to android-examples/app/src/main/java/org/deeplearning4j/examples/androidclassifier/ScatterView.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.androidDl4jClassifier;
1+
package org.deeplearning4j.examples.androidclassifier;
22

33
import android.content.Context;
44
import android.graphics.Canvas;

android-examples/app/src/main/java/com/example/androidDl4jClassifier/TrainingTask.java renamed to android-examples/app/src/main/java/org/deeplearning4j/examples/androidclassifier/TrainingTask.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.androidDl4jClassifier;
1+
package org.deeplearning4j.examples.androidclassifier;
22

33
import org.deeplearning4j.nn.conf.MultiLayerConfiguration;
44
import org.deeplearning4j.nn.conf.NeuralNetConfiguration;

android-examples/app/src/main/res/layout/activity_main.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
tools:context=".MainActivity">
7+
tools:context="org.deeplearning4j.examples.androidclassifier.MainActivity">
88

99

1010
<view
1111
android:id="@+id/id_scatterview"
12-
class="com.example.androidDl4jClassifier.ScatterView"
12+
class="org.deeplearning4j.examples.androidclassifier.ScatterView"
1313
android:layout_width="fill_parent"
1414
android:layout_height="0dp"
1515
app:layout_constraintBottom_toBottomOf="parent"
1616
app:layout_constraintEnd_toEndOf="parent"
1717
app:layout_constraintHorizontal_bias="0.0"
1818
app:layout_constraintStart_toStartOf="parent" />
19-
</androidx.constraintlayout.widget.ConstraintLayout>
19+
</androidx.constraintlayout.widget.ConstraintLayout>

android-examples/app/src/test/java/com/example/androidDl4jClassifier/ExampleUnitTest.java

-17
This file was deleted.

cuda-specific-examples/README.md

-26
This file was deleted.

0 commit comments

Comments
 (0)