This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[MXNET-1226] add Docs update for MXNet Java #14395
Merged
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,21 +35,15 @@ The following instructions are provided for macOS and Ubuntu. Windows is not yet | |
brew update | ||
brew tap caskroom/versions | ||
brew cask install java8 | ||
brew install opencv | ||
brew install maven | ||
``` | ||
|
||
**Ubuntu Steps** | ||
|
||
These scripts will install Maven and its dependencies. You will be running the Scala scripts because the MXNet-Java project has a dependency on the MXNet-Scala project. | ||
Please run the following lines: | ||
|
||
```bash | ||
wget https://raw.githubusercontent.com/apache/incubator-mxnet/master/ci/docker/install/ubuntu_core.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So all of the dependencies for ubuntu/scala/mxnet environment are covered with this change? I'm skeptical. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We no longer require user to install that bunch... Simply Java and maven would work |
||
wget https://raw.githubusercontent.com/apache/incubator-mxnet/master/ci/docker/install/ubuntu_scala.sh | ||
chmod +x ubuntu_core.sh | ||
chmod +x ubuntu_scala.sh | ||
sudo ./ubuntu_core.sh | ||
sudo ./ubuntu_scala.sh | ||
sudo apt-get install openjdk-8-java maven | ||
``` | ||
|
||
**Step 2.** Run the demo MXNet-Java project. | ||
|
@@ -58,25 +52,14 @@ Go to the [MXNet-Java demo project's README](https://github.com/apache/incubator | |
|
||
#### Maven Repository | ||
|
||
MXNet-Java can be easily included in your Maven managed project. The Java packages are currently available as nightly builds on Maven. Add the following Maven repository to your `pom.xml` to fetch the Java packages : | ||
|
||
```html | ||
<repositories> | ||
<repository> | ||
<id>Apache Snapshot</id> | ||
<url>https://repository.apache.org/content/groups/snapshots</url> | ||
</repository> | ||
</repositories> | ||
``` | ||
|
||
Also, add the dependency which corresponds to your platform to the `dependencies` tag : | ||
MXNet-Java can be easily included in your Maven managed project. The Java packages are currently available on Maven. Add the dependency which corresponds to your platform to the `dependencies` tag : | ||
|
||
**Linux CPU** | ||
```html | ||
<dependency> | ||
<groupId>org.apache.mxnet</groupId> | ||
<artifactId>mxnet-full_2.11-linux-x86_64-cpu</artifactId> | ||
<version>1.4.0-SNAPSHOT</version> | ||
<version>1.4.0</version> | ||
</dependency> | ||
``` | ||
|
||
|
@@ -85,7 +68,7 @@ Also, add the dependency which corresponds to your platform to the `dependencies | |
<dependency> | ||
<groupId>org.apache.mxnet</groupId> | ||
<artifactId>mxnet-full_2.11-linux-x86_64-gpu</artifactId> | ||
<version>1.4.0-SNAPSHOT</version> | ||
<version>1.4.0</version> | ||
</dependency> | ||
``` | ||
|
||
|
@@ -94,12 +77,11 @@ Also, add the dependency which corresponds to your platform to the `dependencies | |
<dependency> | ||
<groupId>org.apache.mxnet</groupId> | ||
<artifactId>mxnet-full_2.11-osx-x86_64-cpu</artifactId> | ||
<version>1.4.0-SNAPSHOT</version> | ||
<version>1.4.0</version> | ||
</dependency> | ||
``` | ||
|
||
|
||
The official Java Packages will be released with the release of MXNet 1.4 and will be available on [MXNet Maven package repository](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.mxnet%22). | ||
The official Java Packages are released with the release of MXNet 1.4 and are now available on the [MXNet Maven package repository](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.apache.mxnet%22). | ||
lanking520 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<hr> | ||
|
||
### Eclipse IDE Support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's going on here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to install openCV for Java, not any more