Generates samples from the Bernoulli distribution with success probability mean.

rand_bernoulli(shape, dtype = default_override_or(np$float32), mean = 0.5,
  seed = AUTO_SELECT_SEED, name = "")

Arguments

shape

- list of ints representing tensor shape

dtype

- data type to be used ("float32", "float64", or "auto")

mean

- success probability

seed

- pseudo random number generator seed

name

- name of the Function instance in the network