Developer Guide

Contents

Absolute Value (Abs) Backward Layer

The absolute value (abs) activation layer applies the transform
f
(
x
) =
abs
(
x
) to the input data
. The backward abs layer computes the value
z
=
y
*
f
'(
x
)
, where
y
is the input gradient computed on the prior layer and
f
'(
x
) = {1 if
x
> 0, 0 if
x
= 0, -1 if
x
< 0}
.

Problem Statement

Given
p
-dimensional tensors
X
and
Y
of size
n
1
x
n
2
x ... x
n
p
, the problem is to compute a
p
-dimensional tensor
Z
= (
z
i
1
...
i
p
) of size
n
1
x
n
2
x ... x
n
p
, where:
z
i
1
...
i
p
=
y
i
1
...
i
p
*
sign(x
i
1
...
i
p
)

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804