hasktorch-indef-0.0.1.0: Core Hasktorch abstractions wrapping FFI bindings

Copyright(c) Sam Stites 2017
LicenseBSD3
Maintainersam@stites.io
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Torch.Indef.Dynamic.Print

Description

Helper functions to render n-rank tensors

Synopsis

Documentation

showTensor :: forall a ix. (Typeable a, Ord a, Num a, Show a, Integral ix, Show ix) => (ix -> a) -> (ix -> ix -> a) -> (ix -> ix -> ix -> a) -> (ix -> ix -> ix -> ix -> a) -> [ix] -> String Source #

Generic way of showing the internal data of a tensor in a tabular format. This makes no assumptions about the type of representation to show and can be used for Storage, Dynamic, and Tensor types.

describeTensor :: forall t dims. (Typeable t, Show dims) => [dims] -> Proxy t -> String Source #

show the shape of a tensor