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

Commit

Permalink
add test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Dec 11, 2018
1 parent ef65ec4 commit 1be5a5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import scala.ref.WeakReference
@AddNDArrayFunctions(false)
object NDArray extends NDArrayBase {
implicit def getFirstResult(ret: NDArrayFuncReturn): NDArray = ret(0)
implicit def someWrapper[A](noSome : A) : Option[A] = Option(noSome)
private val logger = LoggerFactory.getLogger(classOf[NDArray])

private val functions: Map[String, NDArrayFunction] = initNDArrayModule()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,6 @@ object Symbol extends SymbolBase {
private val functions: Map[String, SymbolFunction] = initSymbolModule()
private val bindReqMap = Map("null" -> 0, "write" -> 1, "add" -> 3)

implicit def someWrapper[A](noSome : A) : Option[A] = Option(noSome)
val api = SymbolAPI

def pow(sym1: Symbol, sym2: Symbol): Symbol = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,8 @@ class NDArraySuite extends FunSuite with BeforeAndAfterAll with Matchers {
test("Generated api") {
import org.apache.mxnet.util.SomeConversion._
val arr = NDArray.ones(Shape(1, 2), dtype = DType.Float64)
NDArray.api.norm(arr, ord = 0, out = arr)
val result = NDArray.api.dot(arr, arr)
val arr2 = NDArray.ones(Shape(1), dtype = DType.Float64)
NDArray.api.norm(arr, ord = 1, out = arr2)
val result = NDArray.api.dot(arr2, arr2)
}
}

0 comments on commit 1be5a5e

Please sign in to comment.