tf.NET
0.2.3.1
dotnet add package tf.NET --version 0.2.3.1
NuGet\Install-Package tf.NET -Version 0.2.3.1
<PackageReference Include="tf.NET" Version="0.2.3.1" />
paket add tf.NET --version 0.2.3.1
#r "nuget: tf.NET, 0.2.3.1"
// Install tf.NET as a Cake Addin #addin nuget:?package=tf.NET&version=0.2.3.1 // Install tf.NET as a Cake Tool #tool nuget:?package=tf.NET&version=0.2.3.1
tf.NET
About
.NET bindings for the TensorFlow 2 C API. These are low-level bindings suitable for creating higher-level idiomatic interfaces to TensorFlow 2 in .NET languages like C# and F#.
Implementation
- C# bindings autogenerated from the TensorFlow C header files using CppSharp.
- C# op definitions autogenerated from the TensorFlow 2 runtime op definitions. The generator is based on the one created by Miguel de Icaza for TensorFlowSharp.
- Tensor object implementation that uses zero-copy reinterpretation of existing .NET multi-dimensional arrays as tensor data.
Differences
The main differences between this and TensorFlow.NET and TensorSharp and other .NET TensorFlow projects are:
- tf.NET supports TensorFlow 2 only. TensorFlow.NET and other libraries currently only support TF 1.
- tf.NET does not try to implement any higher-level APIs for ML or things like that. I made this because I wanted a low-level direct binding to the TensorFlow 2 API that I could use to create my own .NET scientific computing language in F#. Looking at the code for TensorFlow.NET, it seems to me that it mixes a lot of higher-level C# code and the bindings together. tf.NET has implementations of essential memory-backed objects like buffers and tensors but usage of these implementations is purely optional.
Installation
Available from NuGet
PM> Install-Package tf.NET
Note that you will still need the TensorFlow 2 native runtime library (i.e. libtensorflow) for your OS. There doesn't seem to be an official Google libtensorflow package for version 2 as yet. For Windows you can build it yourself or check out this package which installs a CPU-only TF 2 native library dependency into your .NET project. For Linux you can download nightly builds of libtensorflow from the TensorFlow Github page.
For usage examples see the unit tests.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- Google.Protobuf (>= 3.11.2)
- System.Buffers (>= 4.5.0)
- System.Memory (>= 4.5.3)
- System.Runtime.CompilerServices.Unsafe (>= 4.7.0)
- System.ValueTuple (>= 4.4.0)
-
.NETStandard 2.0
- Google.Protobuf (>= 3.11.2)
- System.Buffers (>= 4.5.0)
- System.Memory (>= 4.5.3)
- System.Runtime.CompilerServices.Unsafe (>= 4.7.0)
- System.ValueTuple (>= 4.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.2.3.1 | 1,027 | 1/7/2020 |
0.2.3 | 567 | 1/7/2020 |
0.2.2 | 938 | 1/4/2020 |
0.2.0-r2.0 | 319 | 12/30/2019 |
Add export functions.