-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Unary Operations
Allison Brucker (Resources Online) edited this page May 30, 2017
·
8 revisions
This page has migrated to our new site. Please update any bookmarks.
Common unary elementwise functions and operations.
Abs (x)
Ceil (x)
Cosine (x)
Clip (x, minValue, maxValue)
Exp (x)
Floor (x)
Log (x)
Negate (x)
-x
BS.Boolean.Not (b)
!b
Reciprocal (x)
Round (x)
Sin (x)
Sqrt (x)
-
x
: argument to apply the function or operation to
Sparse values are currently not supported.
Clip():
-
minValue
: inputs less than this value are replaced by this value -
maxValue
: likewise, inputs more than this value are replaced by this value
Result of applying the function or operation. The output's tensor shape is the same as the input's.
These are common functions and unary operations.
Note that BS.Boolean.Not()
expects inputs to be 0 or 1.
MySoftmax (z) = Exp (LogSoftmax (z))