object TensorOp extends Serializable
- Alphabetic
- By Inheritance
- TensorOp
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
abs[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = |x|build a TensorOp to do element-wise
f(x) = |x|- T
type param of TensorOp
- returns
TensorOp[T]
-
def
add[T](tensor: Tensor[T])(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise tensor addition
build a TensorOp to do element-wise tensor addition
- T
type param of TensorOp
- tensor
Tensor[T]
- returns
TensorOp[T]
-
def
add[T](value: T)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = x + abuild a TensorOp to do element-wise
f(x) = x + a- T
type param of TensorOp
- value
T a
- returns
TensorOp[T]
-
def
apply[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp with identity transformer
build a TensorOp with identity transformer
- T
type param of TensorOp
- returns
TensorOp[T]
-
def
apply[T](transformer: (Tensor[T], TensorNumeric[T]) ⇒ Tensor[T])(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp with user-defined transformer
build a TensorOp with user-defined transformer
- T
type param of TensorOp
- transformer
user-defined tensor transformer
- returns
TensorOp[T]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
ceil[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
ceilbuild a TensorOp to do element-wise
ceil- T
type param of TensorOp
- returns
TensorOp[T]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
div[T](tensor: Tensor[T])(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise division
build a TensorOp to do element-wise division
- T
type param of TensorOp
- tensor
Tensor[T]
- returns
TensorOp[T]
-
def
div[T](value: T)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = x / abuild a TensorOp to do element-wise
f(x) = x / a- T
type param of TensorOp
- value
T a
- returns
TensorOp[T]
-
def
eq[T](value: T)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = if (x==a) 1; else 0build a TensorOp to do element-wise
f(x) = if (x==a) 1; else 0- T
type param of TensorOp
- value
T a
- returns
TensorOp[T]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: scala.Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exp[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = exp(x)build a TensorOp to do element-wise
f(x) = exp(x)- T
type param of TensorOp
- returns
TensorOp[T]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
floor[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
floorbuild a TensorOp to do element-wise
floor- T
type param of TensorOp
- returns
TensorOp[T]
-
def
ge[T](value: Double)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = if (x>=a) 1; else 0build a TensorOp to do element-wise
f(x) = if (x>=a) 1; else 0- T
type param of TensorOp
- value
Double a
- returns
TensorOp[T]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inv[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = 1 / xbuild a TensorOp to do element-wise
f(x) = 1 / x- T
type param of TensorOp
- returns
TensorOp[T]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
log[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = log(x)build a TensorOp to do element-wise
f(x) = log(x)- T
type param of TensorOp
- returns
TensorOp[T]
-
def
log1p[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = log(x + 1)build a TensorOp to do element-wise
f(x) = log(x + 1)- T
type param of TensorOp
- returns
TensorOp[T]
-
def
mul[T](tensor: Tensor[T])(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise multiplication
build a TensorOp to do element-wise multiplication
- T
type param of TensorOp
- tensor
Tensor[T]
- returns
TensorOp[T]
-
def
mul[T](value: T)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = a * xbuild a TensorOp to do element-wise
f(x) = a * x- T
type param of TensorOp
- value
T a
- returns
TensorOp[T]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
negative[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = -xbuild a TensorOp to do element-wise
f(x) = -x- T
type param of TensorOp
- returns
TensorOp[T]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pow[T](n: T)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = x ^ nbuild a TensorOp to do element-wise
f(x) = x ^ n- T
type param of TensorOp
- n
the order of power
- returns
TensorOp[T]
-
def
sigmoid[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = 1 / (1 + exp(-x))build a TensorOp to do element-wise
f(x) = 1 / (1 + exp(-x))- T
type param of TensorOp
- returns
TensorOp[T]
-
def
sign[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = if (x>0) 1; if (x=0) 0; else -1build a TensorOp to do element-wise
f(x) = if (x>0) 1; if (x=0) 0; else -1- T
type param of TensorOp
- returns
TensorOp[T]
-
def
sqrt[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = sqrt(x)build a TensorOp to do element-wise
f(x) = sqrt(x)- T
type param of TensorOp
- returns
TensorOp[T]
-
def
square[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = x ^ 2build a TensorOp to do element-wise
f(x) = x ^ 2- T
type param of TensorOp
- returns
TensorOp[T]
-
def
sub[T](tensor: Tensor[T])(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise tensor subtraction
build a TensorOp to do element-wise tensor subtraction
- T
type param of TensorOp
- tensor
Tensor[T]
- returns
TensorOp[T]
-
def
sub[T](value: T)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = x - abuild a TensorOp to do element-wise
f(x) = x - a- T
type param of TensorOp
- value
T a
- returns
TensorOp[T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
t[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do matrix transposition for 2d Tensors
build a TensorOp to do matrix transposition for 2d Tensors
- T
type param of TensorOp
- returns
TensorOp[T]
-
def
tanh[T]()(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): TensorOp[T]
build a TensorOp to do element-wise
f(x) = tanh(x)build a TensorOp to do element-wise
f(x) = tanh(x)- T
type param of TensorOp
- returns
TensorOp[T]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )