Absolute Value Forward Layer

The forward abs layer computes the absolute value of input argument x.

Problem Statement

Given a p-dimensional tensor X of size n1 x n2 x ... x np, the problem is to compute a p-dimensional tensor Y = (yi1...ip) of size n1 x n2 x ... x np, where:

yi1...ip = abs(xi1...ip)

For more complete information about compiler optimizations, see our Optimization Notice.
Select sticky button color: 
Orange (only for download buttons)