Fork自 PaddlePaddle / Paddle
* add check for bernoulli and register bool for unsqueeze * follow comments
* add bernoulli op * fix cuda kernel and add unit test * refine doc * fix uniform