hasktorch-zoo-0.0.1.0: Neural architectures in hasktorch

Safe HaskellNone
LanguageHaskell2010

Torch.Data.Loaders.RGBVector

Synopsis

Documentation

file2rgb :: forall h w hw rgb. (All KnownDim '[h, w], All KnownNat '[h, w]) => hw ~ (Int, Int) => rgb ~ (Int, Int, Int) => Proxy '(h, w) -> FilePath -> ExceptT String IO [(hw, rgb)] Source #

rgb2list :: forall h w. (All KnownDim '[h, w], All KnownNat '[h, w]) => Proxy '(h, w) -> Normalize -> FilePath -> ExceptT String IO [[[HsReal]]] Source #

load an RGB PNG image into a Torch tensor

assertList :: String -> [HsReal] -> IO () Source #