A .NET binding to the TensorFlow C API for running existing machine learning models in C# and F#.
TensorFlowSharp is a .NET binding to the TensorFlow C API that enables running pre-trained TensorFlow machine learning models within .NET applications. It provides a low-level, strongly-typed interface for loading TensorFlow graphs and executing them using C# or F#, allowing developers to integrate ML models into .NET workflows without relying on Python at runtime.
.NET developers who need to deploy or integrate existing TensorFlow models into C# or F# applications, particularly those working on inference pipelines or applications requiring model execution within a .NET environment.
TensorFlowSharp offers a direct, low-level binding to TensorFlow's native runtime, ensuring compatibility with existing models and providing fine-grained control over graph execution, making it ideal for scenarios where model performance and integration with .NET ecosystems are critical.
TensorFlow API for .NET languages
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Provides direct binding to TensorFlow's C API, exposing full control over graphs and sessions, similar to Java and Go bindings, for precise model execution.
Supports memory reuse through runner instances and input tensors, minimizing allocations for performance-sensitive applications, as shown in the README's GC-aware example.
Works with both C# and F#, including F# Interactive scripting, blending seamlessly into .NET ecosystems with familiar naming conventions.
Can load and execute models saved from Python environments like TensorFlow or Keras, enabling .NET deployment of Python-trained models without runtime Python dependencies.
Lacks the high-level operations found in Python bindings, making it cumbersome for tasks beyond model execution, as the README admits and recommends TensorFlow.NET for this.
The project is not actively maintained, with the author explicitly pointing users to TensorFlow.NET, risking outdated dependencies and limited bug fixes.
Requires explicit graph and session management, leading to boilerplate code for simple tasks compared to more abstracted .NET machine learning libraries.