Tensors and neural networks in Haskell
Browse cluster: Haskell tooling and libraries →Hasktorch is a Haskell library for tensors and neural networks built on libtorch. The project enables users to build and train neural network models in Haskell, offering both dynamic tensors (which treat tensors as opaque types similar to PyTorch) and typed tensors (which track tensor dimensions at compile time to enforce dimension invariants). The library supports a wide range of neural network architectures and training techniques, including RNNs, CNNs, variational autoencoders, gaussian processes, and model distillation, along with capabilities for model serialization, optimization, and interoperability with PyTorch through torchscript and state dictionaries.