ChaiBapchya commented on a change in pull request #12881: Improve the Clojure 
Package README to Make it Easier to Get Started
URL: https://github.com/apache/incubator-mxnet/pull/12881#discussion_r226808163
 
 

 ##########
 File path: contrib/clojure-package/README.md
 ##########
 @@ -80,36 +86,33 @@ wget 
https://archive.archlinux.org/packages/c/cuda/cuda-9.0.176-4-x86_64.pkg.tar
 sudo pacman -U cuda-9.0.176-4-x86_64.pkg.tar.xz
 ```
 
-If you want to see the exact versions and flags that the jars were built with, 
look here:
-[Scala Release 
Process](https://cwiki.apache.org/confluence/display/MXNET/MXNet-Scala+Release+Process)
+At this point you should be able to run your own example like this [NDArray 
Tutorial](https://github.com/apache/incubator-mxnet/blob/master/contrib/clojure-package/examples/tutorial/src/tutorial/ndarray.clj)
 
+### Getting Started with MXNet project with the Prebuilt Scala Jars
 
-Check your installation with `lein test`. If that works alright then, you can 
try some code!
+This option is also fast. It doesn't require you to build the native C library 
or the Scala jars, it gets them from 
[Maven](https://search.maven.org/search?q=g:org.apache.mxnet) as well. 
 
-```clojure
+- `git clone --recursive https://github.com/apache/incubator-mxnet.git ~/mxnet`
+- `cd mxnet`
+- `git tag —list` (find the tag that corresponds the the version of the latest 
Scala jar)
+- `git checkout tags/<tag_name> -b <branch_name>`
+- `cd contrib/clojure`
+- edit `project.clj` to include your Scala jar from maven. It should match 
your system. Example `[org.apache.mxnet/mxnet-full_2.11-linux-x86_64-cpu 
"x.y.z”]`
+- run `lein test`. All the tests should run without an error
+- At this point you can do `lein install` to build and install the clojure jar 
locally. Now, you can run the examples by doing `cd examples/imclassification` 
and then `lein run`  or `lein run :cpu 2` (for 2 cpus) (for gpu `lein run :gpu`)
 
 Review comment:
   nit: to maintain consistency, Clojure (c capital) and jar ( j small) - 
throughout the document

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to