'Create a binary mask for dropout layers.
Arguments:
out (GPUTensor): Output tensor
keepthresh (float): fraction of ones'

def make_binary_mask(self, out, keepthresh=0.5):

    self.dropout(keep=keepthresh, out=out)
