Skip to content

Commit

Permalink
add function sum to Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldpe2G committed May 10, 2016
1 parent 2145e0d commit be7220a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scala-package/core/src/main/scala/ml/dmlc/mxnet/Symbol.scala
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,14 @@ object Symbol {
createFromListedSymbols("square")(Array(src))
}

/**
* Take sum of the src
* @param src Source symbolic input to the function
*/
def sum(src: Symbol): Symbol = {
createFromListedSymbols("sum")(Array(src))
}

/**
* Take sqrt of the src
* src Source symbolic input to the function
Expand Down

0 comments on commit be7220a

Please sign in to comment.