Torch.Random
Contents
mkGenerator :: Device -> Word64 -> IO Generator Source #
data Generator Source #
Defined in Torch.Random
Methods
showsPrec :: Int -> Generator -> ShowS #
show :: Generator -> String #
showList :: [Generator] -> ShowS #
(==) :: Generator -> Generator -> Bool #
(/=) :: Generator -> Generator -> Bool #
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 #
show :: TVar (Either (Word64, Device) (ForeignPtr Generator)) -> String #
showList :: [TVar (Either (Word64, Device) (ForeignPtr Generator))] -> ShowS #