Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
version added to infer package pom
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagmote committed Mar 21, 2018
1 parent e0292ea commit 388fb4d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion scala-package/examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
</dependency>
<dependency>
<groupId>ml.dmlc.mxnet</groupId>
<artifactId>mxnet-infer</artifactId>
<artifactId>mxnet-infer_${scala.binary.version}</artifactId>
<version>1.2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ object ImageClassifierExample {
def main(args: Array[String]): Unit = {
val inst = new ImageClassifierExample
val parser: CmdLineParser = new CmdLineParser(inst)
// try {
try {
parser.parseArgument(args.toList.asJava)

val modelPathPrefix = if (inst.modelPathPrefix == null) System.getenv("MXNET_DATA_DIR")
Expand Down Expand Up @@ -106,13 +106,13 @@ object ImageClassifierExample {
printf("Input image %s ", f)
printf("Class with probability =%s \n", inferOp)
}
// } catch {
// case ex: Exception => {
// logger.error(ex.getMessage, ex)
// parser.printUsage(System.err)
// sys.exit(1)
// }
// }
} catch {
case ex: Exception => {
logger.error(ex.getMessage, ex)
parser.printUsage(System.err)
sys.exit(1)
}
}
}
}

Expand Down
7 changes: 4 additions & 3 deletions scala-package/infer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>mxnet-parent_2.11</artifactId>
<groupId>ml.dmlc.mxnet</groupId>
<version>1.2.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>mxnet-infer</artifactId>
<artifactId>mxnet-infer_2.11</artifactId>
<name>MXNet Scala Package - Inference</name>

<profiles>
Expand Down Expand Up @@ -81,4 +82,4 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>

0 comments on commit 388fb4d

Please sign in to comment.