Skip to content

Commit

Permalink
[MXNET-918] Introduce Random module / Refact code generation (apache#…
Browse files Browse the repository at this point in the history
…13038)

* refactor code gen

* remove xxxAPIMacroBase (overkill)

* CI errors / scala-style

* PR review comments
  • Loading branch information
mdespriee authored and lanking520 committed Nov 13, 2018
1 parent fb4cad9 commit 91d1fe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ private[mxnet] object APIDocGenerator extends GeneratorBase {
} else {
argDef += "out : Option[NDArray] = None"
}

val returnType = func.returnType

s"""@Experimental
Expand Down Expand Up @@ -242,11 +241,9 @@ private[mxnet] object APIDocGenerator extends GeneratorBase {
|abstract class $className {
|${absFuncs.mkString("\n")}
|}""".stripMargin

val pw = new PrintWriter(new File(FILE_PATH + s"$className.scala"))
pw.write(finalStr)
pw.close()
MD5Generator(finalStr)
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,5 @@ abstract class GeneratorBase {
}
)
}

}

0 comments on commit 91d1fe3

Please sign in to comment.