DiffSharp

DiffSharp

Automatic differentiation and tensor library for machine learning on .NET.

Visit DiffSharp

About DiffSharp

DiffSharp is an open-source tensor library aimed at enabling advanced differentiable programming, primarily for machine learning, probabilistic programming, and optimization tasks. It provides powerful and composable automatic differentiation, supporting nested and mixed-mode differentiation up to any level. Built with F# and targeting .NET, DiffSharp offers APIs and features similar to PyTorch, plus a robust backend leveraging LibTorch and CUDA for accelerated computing on Linux, macOS, and Windows. It is ideal for developers, researchers, and academics looking for high-performance, functional tensor computation and differentiation on the .NET stack.

Pricing Plans
Open Source
$0

Resources

Product Website

Visit DiffSharp's official website for product details and getting started.

Visit website →

GitHub Repository

Access the source code, report issues, and contribute to the development of DiffSharp.

View on GitHub →

Community Discussions

Engage with other users and developers to discuss features and get support.

Join the community →