szha commented on a change in pull request #12064: Allow stop of arange to be
inferred from dims.
URL: https://github.com/apache/incubator-mxnet/pull/12064#discussion_r210963897
##########
File path: scala-package/core/src/main/scala/org/apache/mxnet/Symbol.scala
##########
@@ -955,9 +955,10 @@ object Symbol extends SymbolBase {
* @return Symbol The created Symbol.
*/
def arange(start: Float, stop: Option[Float] = None, step: Float = 1.0f,
- repeat: Int = 1, name: String = null, dType: DType = Base.MX_REAL_TYPE):
Symbol = {
+ repeat: Int = 1, inferRange: Boolean = false, name: String = null,
+ dType: DType = Base.MX_REAL_TYPE): Symbol = {
val params = Map("start" -> start, "step" -> step,
- "repeat" -> repeat, "dtype" -> dType.toString())
+ "repeat" -> repeat, "infer_range" -> inferRange, "dtype" ->
dType.toString())
Review comment:
@lanking520
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services