getDropoutMask: Returns the dropout mask for the given layer
Description
The dropout mask is applied to the weights between layer i and i+1, for 0 < i
< numLayers. For i = 0, the dropout mask for the input layer is returned,
which will be applied to the initial input data.