Cross channel square-normalize using local responses
The cross-channel normalization operation uses local responses
in different channels to normalize each activation. Cross-channel normalization typically
follows a relu
operation.
Cross-channel normalization is also known as local response normalization.
Note
This function applies the cross-channel normalization operation to dlarray
data. If
you want to apply cross-channel normalization within a layerGraph
object
or Layer
array, use
the following layer:
normalizes each element of dlY
= crosschannelnorm(dlX
,windowSize
)dlX
with respect to local values in the same
position in nearby channels. The normalized elements in dlY
are
calculated from the elements in dlX
using the following formula.
where y is an element of dlY
,
x is the corresponding element of dlX
,
ss is the sum of the squares of the elements in the channel region
defined by windowSize
, and α, β,
and K are hyperparameters in the normalization.
also specifies the dimension format dlY
= crosschannelnorm(dlX
,windowSize
,'DataFormat',FMT)FMT
when dlX
is an
unformatted dlarray
, in addition to the input arguments the previous
syntax. The output dlY
is an unformatted dlarray with the same dimension
order as dlX
.
specifies options using one or more name-value pair arguments in addition to the input
arguments in previous syntaxes. For example, dlY
= crosschannelnorm(___,Name,Value
)'Beta',0.8
sets the value of
the β contrast constant to 0.8
.