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

Commit

Permalink
change name to Option
Browse files Browse the repository at this point in the history
  • Loading branch information
lanking520 committed Dec 21, 2018
1 parent 85d9417 commit 6db5068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@

package org.apache.mxnet.util

object SomeConversion {
object OptionConversion {
implicit def someWrapper[A](noSome : A) : Option[A] = Option(noSome)
}
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ class NDArraySuite extends FunSuite with BeforeAndAfterAll with Matchers {
val arr4 = NDArray.ones(Shape(1), dtype = DType.Float64)
val arr5 = NDArray.api.norm(arr3, ord = Some(1), out = Some(arr4))
// With SomeConversion
import org.apache.mxnet.util.SomeConversion._
import org.apache.mxnet.util.OptionConversion._
val arr = NDArray.ones(Shape(1, 2), dtype = DType.Float64)
val arr2 = NDArray.ones(Shape(1), dtype = DType.Float64)
NDArray.api.norm(arr, ord = 1, out = arr2)
Expand Down

0 comments on commit 6db5068

Please sign in to comment.