hasktorch-0.2.1.3: Haskell bindings to libtorch, supporting both typed and untyped tensors.
Safe HaskellNone
LanguageHaskell2010

Torch.Random

Documentation

data Generator Source #

Instances

Instances details
Show Generator Source # 
Instance details

Defined in Torch.Random

Eq Generator Source # 
Instance details

Defined in Torch.Random

randn Source #

Arguments

:: [Int]

size

-> TensorOptions

options

-> Generator

generator

-> (Tensor, Generator)

output

randn' Source #

Arguments

:: [Int]

size

-> Generator

generator

-> (Tensor, Generator)

output

rand Source #

Arguments

:: [Int]

size

-> TensorOptions

options

-> Generator

generator

-> (Tensor, Generator)

output

rand' Source #

Arguments

:: [Int]

size

-> Generator

generator

-> (Tensor, Generator)

output

randint Source #

Arguments

:: Int

low

-> Int

high

-> [Int]

size

-> TensorOptions

options

-> Generator

generator

-> (Tensor, Generator)

output

randint' Source #

Arguments

:: Int

low

-> Int

high

-> [Int]

size

-> Generator

generator

-> (Tensor, Generator)

output

normal Source #

Arguments

:: Double

mean

-> Double

std

-> [Int]

size

-> TensorOptions

options

-> Generator

generator

-> (Tensor, Generator)

output

normal' Source #

Arguments

:: Double

mean

-> Double

std

-> [Int]

size

-> Generator

generator

-> (Tensor, Generator)

output

Orphan instances

Show (TVar (Either (Word64, Device) (ForeignPtr Generator))) Source # 
Instance details

Methods

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 #