Google I/O returns May 18-20! Reserve space and build your schedule Register now


View source on GitHub

Returns a tensor with random bernoulli distribution of values.

shape A tuple of integers, the shape of tensor to create.
p A float, 0. <= p <= 1, probability of bernoulli distribution.
dtype String, dtype of returned tensor.
seed Integer, random seed.

A tensor.