Skip to content

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)

Parameters

  • 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

Return Value

Result of applying the function or operation. The output's tensor shape is the same as the input's.

Description

These are common functions and unary operations.

Note that BS.Boolean.Not() expects inputs to be 0 or 1.

Example

MySoftmax (z) = Exp (LogSoftmax (z))
Clone this wiki locally