hasktorch-0.2.0.0: Functional differentiable programming in Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Torch.Vision

Documentation

data MNIST (m :: * -> *) Source #

Constructors

MNIST 

Instances

Instances details
Applicative m => Dataset (m :: Type -> Type) (MNIST m) Int (Tensor, Tensor) Source # 
Instance details

Defined in Torch.Vision

Methods

getItem :: MNIST m -> Int -> m (Tensor, Tensor) Source #

keys :: MNIST m -> Set Int Source #

Monad m => Datastream m Int (MNIST m) (Tensor, Tensor) Source # 
Instance details

Defined in Torch.Vision

Methods

streamSamples :: MNIST m -> Int -> ListT m (Tensor, Tensor) Source #

data PixelFormat Source #

Constructors

Y8 
YF 
YA8 
RGB8 
RGBF 
RGBA8 
YCbCr8 
CMYK8 
CMYK16 
RGBA16 
RGB16 
Y16 
YA16 
Y32 

Instances

Instances details
Show PixelFormat Source # 
Instance details

Defined in Torch.Vision

Eq PixelFormat Source # 
Instance details

Defined in Torch.Vision

drawLine :: Int -> Int -> Int -> Int -> (Int, Int, Int) -> Image PixelRGB8 -> IO () Source #

drawRect :: Int -> Int -> Int -> Int -> (Int, Int, Int) -> Image PixelRGB8 -> IO () Source #

drawString :: String -> Int -> Int -> (Int, Int, Int) -> (Int, Int, Int) -> Image PixelRGB8 -> IO () Source #

drawChar :: Int -> Int -> Int -> (Int, Int, Int) -> (Int, Int, Int) -> Image PixelRGB8 -> IO () Source #

writeImage :: forall p. Pixel p => Int -> Int -> Int -> p -> Tensor -> IO (Image p) Source #