object
Expression
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
-
-
-
final
def
asInstanceOf[T0]: T0
-
-
-
-
-
-
-
def
clone(): AnyRef
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
constant(d: Dim, v: Float): Expression
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
finalize(): Unit
-
-
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
-
-
-
-
def
hinge(e: Expression, index: Long, m: Float = 1.0f): Expression
-
-
-
-
-
-
-
def
input(s: Float): Expression
-
-
final
def
isInstanceOf[T0]: Boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
final
def
ne(arg0: AnyRef): Boolean
-
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
-
-
-
-
-
-
-
-
-
-
-
def
pickrange(x: Expression, v: Long, u: Long, d: Long = 0l): Expression
-
-
-
-
def
randomBernoulli(d: Dim, p: Float, scale: Float = 1.0f): Expression
-
def
randomGumbel(d: Dim, mu: Float, beta: Float): Expression
-
-
def
randomUniform(d: Dim, left: Float, right: Float): Expression
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
def
stridedSelect(x: Expression, strides: Seq[Int], from: Seq[Int], to: Seq[Int]): Expression
-
-
-
-
-
-
-
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
-
def
toString(): String
-
-
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
-
-
Inherited from AnyRef
Inherited from Any
Contains methods for creating edu.cmu.dynet.Expressions. There are several ways to create expressions:
* from explicit values (e.g.
input
) * randomly (e.g.randomNormal
) * from edu.cmu.dynet.ParameterCollection parameters (e.g.parameter
) * from other expressions (e.g.softmax
andpow
)