-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[MXNET-531][Work In Progress] MNIST Examples for Scala new API #11198
Conversation
…to ndarray-bugfix
…tor-mxnet into mxnet-example
@lanking520 please break into one example per PR with testing and documentation included |
@nswamy Done that, this one MNIST specifically |
val tempDirPath = System.getProperty("java.io.tmpdir") | ||
val modelDirPath = tempDirPath + File.separator + "mnist/" | ||
logger.info("tempDirPath: %s".format(tempDirPath)) | ||
Process("wget https://s3.us-east-2.amazonaws.com/mxnet-scala/scala-example-ci" + |
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.
This will break on windows (I know we don't support it yet) and requires wget. Are there any scala-tools that allow downloading files with features like retry-mechanisms etc?
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 should try to avoid using the Process-Method and rather rely on language-specific tools
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.
Good idea, Will try change into this: https://stackoverflow.com/questions/24162478/how-to-download-and-save-a-file-from-the-internet-using-scala
…to mxnet-example
Abandon this PR since it includes too much conflict with Master Branch, open one here: #11250 |
Description
This PR contains examples written from the new API.
@nswamy @yzhliu @andrewfayres
All examples pushed here are tested locally on my Mac. It lives in the new package called
org.apache.mxnet.examples
Checklist
Essentials