Torch.Random
Contents
mkGenerator :: Device -> Word64 -> IO Generator Source #
data Generator Source #
Defined in Torch.Random
Methods
showsPrec :: Int -> Generator -> ShowS Source #
show :: Generator -> String Source #
showList :: [Generator] -> ShowS Source #
(==) :: Generator -> Generator -> Bool Source #
(/=) :: Generator -> Generator -> Bool Source #
randn Source #
Arguments
size
options
generator
output
randn' Source #
rand Source #
rand' Source #
randint Source #
low
high
randint' Source #
normal Source #
mean
std
normal' Source #
showsPrec :: Int -> TVar (Either (Word64, Device) (ForeignPtr Generator)) -> ShowS Source #
show :: TVar (Either (Word64, Device) (ForeignPtr Generator)) -> String Source #
showList :: [TVar (Either (Word64, Device) (ForeignPtr Generator))] -> ShowS Source #