Re: Java API for MXNet

2017-08-16 Thread Zihao Zheng
jvm side for that our self. >>>>>>>>>>>>> A good example of JavaCPP and Scala usage is Apache Mahout >>> [1]. >>>>>>>>>>>>> >>>>>>>>>>>>> Even if we don't use JavaCPP, the JNI layer

Re: Java API for MXNet

2017-08-16 Thread Nan Zhu
; >> >>> >> >> the major sources of bugs, especially with two languages > which > >> >> are > >> >> >>> >> >> naturally interactive (OK, Calling Scala from Java might > need > >> >> some > >

Re: Java API for MXNet

2017-08-16 Thread Joern Kottmann
rovide C++ & C APIs of MxNet in >> two >> >> >>> >> separated >> >> >>> >> >> packages. >> >> >>> >> >> >> >> >>> >> >> About dependency problem, when you say "As far a

Re: Java API for MXNet

2017-08-16 Thread Nan Zhu
isadvantage that the Java API would force Scala as a > dependency > >> onto > >> >>> >> the > >> >>> >> >> java users.", would you please give a concrete example causing > >> >>> critical > >

Re: Java API for MXNet

2017-08-16 Thread YiZhi Liu
;>> >> >> Nan >> >>> >> >> >> >>> >> >> >> >>> >> >> >> >>> >> >> On Wed, Aug 16, 2017 at 8:19 AM, YiZhi Liu <javeli...@gmail.com> >> >>> wrote: >> >>> >&g

Re: Java API for MXNet

2017-08-16 Thread sandeep krishnamurthy
f we build the Java API from the very beginning, i.e. the JNI > part, > >>> >> >>> we have to rewrite the codes for training, predict, inferShape, > etc. > >>> >> >>> It would be too heavy to maintain a totally new front language. > >>&

Re: Java API for MXNet

2017-08-16 Thread Chris Olivier
; For a library it is always a great advantage if it doesn't have > many > > >>> > dependencies, or zero dependencies. In our case it could be quite > > >>> > realistic to have a thin wrapper around the C API without needing > any > > >>> >

Re: Java API for MXNet

2017-08-16 Thread Nan Zhu
> > > >> >>> > the approach which is taken by Spark is described here [1]. > >> >>> > > >> >>> > As far as I see this has the great disadvantage that the Java API > >> >>> > would force Scala as a depende

Re: Java API for MXNet

2017-08-16 Thread YiZhi Liu
't have many >> >>> > dependencies, or zero dependencies. In our case it could be quite >> >>> > realistic to have a thin wrapper around the C API without needing any >> >>> > other dependencies (or only dependencies which can't be avoided). &g

Re: Java API for MXNet

2017-08-16 Thread Nan Zhu
dependencies (or only dependencies which can't be avoided). > >>> > > >>> > The JNI layer could easily be shared between the Java and Scala API. > >>> > As far as I understand is the JNI layer in the Scala API anyway > >>> > private and a

Re: Java API for MXNet

2017-08-16 Thread Nan Zhu
change to it wouldn't require that the public part of > >> > the Scala API is changed. > >> > > >> > What do you think? > >> > > >> > Jörn > >> > > >> > [1] https://cwiki.apache.org/confluence/display/SPA

Re: Java API for MXNet

2017-08-16 Thread YiZhi Liu
o it wouldn't require that the public part of >>> > the Scala API is changed. >>> > >>> > What do you think? >>> > >>> > Jörn >>> > >>> > [1] https://cwiki.apache.org/confluence/display/SPARK/Java+API+Internals >&g

Re: Java API for MXNet

2017-08-16 Thread Tianqi Chen
part of > > > the Scala API is changed. > > > > > > What do you think? > > > > > > Jörn > > > > > > [1] > https://cwiki.apache.org/confluence/display/SPARK/Java+API+Internals > > > > > > On Wed, Aug 16, 2017 at 3

Re: Java API for MXNet

2017-08-16 Thread Nan Zhu
PI as a wrapper of Scala API, re-use most of > >> the procedures. Referring to the Java API in Apache Spark. > >> > >> 2017-08-16 18:21 GMT+08:00 Joern Kottmann <jo...@apache.org>: > >>> Hello all, > >>> > >>> I would like to propose t

Re: Java API for MXNet

2017-08-16 Thread Dom Divakaruni
, YiZhi Liu <javeli...@gmail.com> wrote: >>> Hi Joern, >>> >>> I suggest to build Java API as a wrapper of Scala API, re-use most of >>> the procedures. Referring to the Java API in Apache Spark. >>> >>> 2017-08-16 18:21 GMT+08:00 Joern Ko

Re: Java API for MXNet

2017-08-16 Thread YiZhi Liu
> Hi Joern, >> >> I suggest to build Java API as a wrapper of Scala API, re-use most of >> the procedures. Referring to the Java API in Apache Spark. >> >> 2017-08-16 18:21 GMT+08:00 Joern Kottmann <jo...@apache.org>: >>> Hello all, >>> >>>

Re: Java API for MXNet

2017-08-16 Thread Joern Kottmann
uggest to build Java API as a wrapper of Scala API, re-use most of > the procedures. Referring to the Java API in Apache Spark. > > 2017-08-16 18:21 GMT+08:00 Joern Kottmann <jo...@apache.org>: >> Hello all, >> >> I would like to propose the addition of a Java API t

Re: Java API for MXNet

2017-08-16 Thread YiZhi Liu
Hi Joern, I suggest to build Java API as a wrapper of Scala API, re-use most of the procedures. Referring to the Java API in Apache Spark. 2017-08-16 18:21 GMT+08:00 Joern Kottmann <jo...@apache.org>: > Hello all, > > I would like to propose the addition of a Java API to MXNet

Java API for MXNet

2017-08-16 Thread Joern Kottmann
Hello all, I would like to propose the addition of a Java API to MXNet. There has been some previous work done for the Scala API, and it makes sense to at least share the JNI layer between the two. The Java API probably should be aligned with the Python API (and others which exist already