Generates samples from the Bernoulli distribution with success probability mean.

rand_bernoulli_like(x, mean = 0.5, seed = AUTO_SELECT_SEED, name = "")

Arguments

x

- CNTK variable from which to copy the shape, dtype, and dynamic axes

mean

- success probability

seed

- pseudo random number generator seed

name

- name of the Function instance in the network