/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/latest/rocAL_pybind/amd/rocal/random.py File Reference#
random.py File Reference
File containing randomization functions used for creating RNG generators. More...
Functions | |
def | rocAL_pybind.amd.rocal.random.coin_flip (*inputs, probability=0.5) |
coin flip with a given probability of success. More... | |
def | rocAL_pybind.amd.rocal.random.uniform (*inputs, range=[-1.0, 1.0]) |
def | rocAL_pybind.amd.rocal.random.normal (*inputs, mean=0.0, stddev=1.0) |
Detailed Description
File containing randomization functions used for creating RNG generators.
Function Documentation
◆ coin_flip()
def rocAL_pybind.amd.rocal.random.coin_flip | ( | * | inputs, |
probability = 0.5 |
|||
) |
coin flip with a given probability of success.
@param inputs list of input arguments. @param probability Probability of getting a "success" outcome. @return An array of coin flip outcomes.
◆ normal()
def rocAL_pybind.amd.rocal.random.normal | ( | * | inputs, |
mean = 0.0 , |
|||
stddev = 1.0 |
|||
) |
Creates a rocalTensor from an normal distribution with given mean and stddev.
◆ uniform()
def rocAL_pybind.amd.rocal.random.uniform | ( | * | inputs, |
range = [-1.0, 1.0] |
|||
) |
Creates a rocalTensor from an uniform distribution with given range.