MXNet supports the Scala programming language. The MXNet Scala package brings flexible and efficient GPU computing and state-of-art deep learning to Scala. It enables you to write seamless tensor/matrix computation with multiple GPUs in Scala. It also lets you construct and customize the state-of-art deep learning models in Scala, and apply them to tasks, such as image classification and data science challenges.
See the MXNet Scala API Documentation for detailed API information.
.. toctree::
:maxdepth: 1
infer.md
io.md
kvstore.md
model.md
module.md
ndarray.md
symbol_in_pictures.md
symbol.md
The Infer API can be used for single and batch image classification. More information can be found at the following locations:
You can perform tensor or matrix computation in pure Scala:
scala> import org.apache.mxnet._
import org.apache.mxnet._
scala> val arr = NDArray.ones(2, 3)
arr: org.apache.mxnet.NDArray = org.apache.mxnet.NDArray@f5e74790
scala> arr.shape
res0: org.apache.mxnet.Shape = (2,3)
scala> (arr * 2).toArray
res2: Array[Float] = Array(2.0, 2.0, 2.0, 2.0, 2.0, 2.0)
scala> (arr * 2).shape
res3: org.apache.mxnet.Shape = (2,3)
Can you improve this documentation? These fine people already did:
Roshani Nagmote, andremoeller, Sandeep Krishnamurthy, Aaron Markham, Naveen Swamy, Sheng Zha, Yao Wang & Chetan KhatriEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close