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
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89b6186
commit dd39249
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
scala-package/examples/src/main/scala/org/apache/mxnetexamples/customop/README.md
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Custom Operator Example for Scala | ||
This is the example using Custom Operator for type-safe api of Scala. | ||
In the example, a `Softmax` operator is implemented to run the MNIST example. | ||
|
||
There is also an example using RTC. However, the rtc module is depreciated and no longer can be used. Please contribute to use CudaModule operator to replace the rtc. | ||
|
||
## Setup | ||
### Download the source File | ||
```$xslt | ||
https://s3.us-east-2.amazonaws.com/mxnet-scala/scala-example-ci/mnist/mnist.zip | ||
``` | ||
### Unzip the file | ||
```$xslt | ||
unzip mnist.zip | ||
``` | ||
### Arguement Configuration | ||
Then you need to define the arguments that you would like to pass in the model: | ||
```$xslt | ||
--data-path <location of your downloaded file> | ||
``` | ||
|
||
you can find more in [here](https://github.com/apache/incubator-mxnet/blob/scala-package/examples/src/main/scala/org/apache/mxnet/examples/customop/ExampleCustomOp.scala#L218-L221) |