Generates samples from the Bernoulli distribution with success probability mean.
1 2 | rand_bernoulli(shape, dtype = default_override_or(np$float32), mean = 0.5,
seed = AUTO_SELECT_SEED, name = "")
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.