Hasktorch is a powerful Haskell library for tensor computation and neural network modeling, built on top of libtorch (the backend of PyTorch). It brings differentiable programming, automatic differentiation, and efficient tensor operations into Haskell’s strongly typed functional paradigm. This project is in active development, so expect changes to the library API as it evolves. We would like to invite new users to join our Hasktorch discord space for questions and discussions. Contributions/PR are encouraged. Hasktorch is a library for tensors and neural networks in Haskell. It is an independent open source community project which leverages the core C++ libraries shared by PyTorch.

Features

  • High-performance tensor operations utilizing libtorch for CPU and GPU computation
  • Support for both typed and untyped tensors to ensure type safety and flexibility
  • Automatic differentiation for gradient-based optimization and learning
  • Abundant mathematical operations including linear algebra, neural network layers, and probability distributions
  • Lightweight, idiomatic Haskell design leveraging algebraic data types and functional composition
  • Active open-source community with tutorials, examples, and multi-platform support (Linux, macOS, Nix, Docker)

Project Samples

Project Activity

See All Activity >

Categories

Libraries

Follow Hasktorch

Hasktorch Web Site

You Might Also Like
See Everything. Miss Nothing. 30-day free trial Icon
See Everything. Miss Nothing. 30-day free trial

Don’t let IT surprises catch you off guard. PRTG keeps an eye on your whole network, so you don’t have to.

As the IT backbone of your company, you can’t afford to miss a thing. PRTG monitors every device, application, and connection - on-premise and in the cloud. You get clear dashboards, smart alerts, and mobile access, so you’re always in control, wherever you are. No more guesswork or manual checks. PRTG’s powerful automation and easy setup mean you spend less time firefighting and more time moving your business forward. Discover how simple and reliable IT monitoring can be.
Try PRTG 30-day full access trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Hasktorch!

Additional Project Details

Programming Language

Haskell

Related Categories

Haskell Libraries

Registered

2025-09-04