Concatenated Rectified Linear Activation Function

From GM-RKB
Jump to navigation Jump to search

A Concatenated Rectified Linear Activation Function is a Rectified-based Activation Function that is defined as [math]\displaystyle{ f(x)=(max(0,x),max(0,−x)) }[/math].



References

2018a

Returns:

A Tensor. Has the same type as features.

2018b

Returns: Output variable. A [math]\displaystyle{ (s_1,s_2,\cdots,s_N) }[/math]-shaped float array.
Return type: Variable
Example:
>>> x = np.array([ [-1, 0], [2, -3] ], 'f')
>>> x
array([ [-1.,  0.],
       [ 2., -3.] ], dtype=float32)
>>> y = F.crelu(x, axis=1)
>>> y.data
array([ [0., 0., 1., 0.],
       [2., 0., 0., 3.] ], dtype=float32)

2016