-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
@mxnet-label-bot add [pr-awaiting-review, Java] |
70cadec
to
4936b6a
Compare
scala-package/core/src/test/java/org/apache/mxnet/javaapi/ImageTest.java
Outdated
Show resolved
Hide resolved
"--model-path-prefix", modelPathPrefix, | ||
"--input-image", inputImagePath | ||
}; | ||
example.main(args); |
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.
Is the test to simply run the example code ?
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.
Yes, the example test is to verify the example is still working...
* @return org.apache.mxnet.NDArray | ||
*/ | ||
def imResize(src: NDArray, w: Int, h: Int, interp: Integer): NDArray = { | ||
val interpVal = if (interp == null) None else Some(interp.intValue()) |
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.
You can just use Option(interp.intValue())
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 cause a null pointer exception, since users may send null in
@@ -15,6 +15,7 @@ | |||
|
|||
<properties> | |||
<skipTests>true</skipTests> | |||
<skipJavaTests>${skipTests}</skipJavaTests> |
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.
What is this for? I don't think it is valid in maven to set one property based on another property and it is just set to false in modules which have java tests to run
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 keeps control of a Junit test is going to run or not, by default it is set to be false. In fact, this is working...
scala-package/core/src/main/scala/org/apache/mxnet/javaapi/Image.scala
Outdated
Show resolved
Hide resolved
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.
Looks good to me.
@sandeep-krishnamurthy could you please give a review? |
* add java example * add test and change PredictorExample * add image change * Add minor fixes * add License * add predictor Example tests * fix the issue with JUnit test * Satisfy Lint God ʕ •ᴥ•ʔ * update the pom file config * update documentation * add simplified methods
* add java example * add test and change PredictorExample * add image change * Add minor fixes * add License * add predictor Example tests * fix the issue with JUnit test * Satisfy Lint God ʕ •ᴥ•ʔ * update the pom file config * update documentation * add simplified methods
* add java example * add test and change PredictorExample * add image change * Add minor fixes * add License * add predictor Example tests * fix the issue with JUnit test * Satisfy Lint God ʕ •ᴥ•ʔ * update the pom file config * update documentation * add simplified methods
Description
As title described, add Scala Image API to Java...
@zachgk @piyushghai @andrewfayres
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.