You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed all the Tensorflow.NET components according to the documentation on my M1. I am working in Visual Studio Code.
Despite having installed all the required packages: SciSharp.TensorFlow.Redist, TensorFlow.Keras, TensorFlow.NET, and even Microsoft.ML.TensorFlow.Redist as mentioned in one of the similar threads (#252) I am still unable to get this work.
using static Tensorflow.Binding;
using static Tensorflow.KerasApi;
using Tensorflow;
using Tensorflow.NumPy;
...
var hello = tf.constant("yey!"); // <- AN EXCEPTION THROWN HERE
Console.WriteLine(hello);
Exception thrown: 'System.DllNotFoundException' in Tensorflow.Binding.dll
Exception thrown: 'Tensorflow.RuntimeError' in Tensorflow.Binding.dll
Exception:
Tensorflow.RuntimeError: Tensorflow.NET cannot find a backend. Please install one of the following packages for your program: SciSharp.TensorFlow.Redist, SciSharp.TensorFlow.Redist-Linux-GPU, SciSharp.TensorFlow.Redist-Windows-GPU
Description
I installed all the Tensorflow.NET components according to the documentation on my M1. I am working in Visual Studio Code.
Despite having installed all the required packages: SciSharp.TensorFlow.Redist, TensorFlow.Keras, TensorFlow.NET, and even Microsoft.ML.TensorFlow.Redist as mentioned in one of the similar threads (#252) I am still unable to get this work.
Part of my *.csproj file:
Part of my *.xaml.cs file:
Exception thrown: 'System.DllNotFoundException' in Tensorflow.Binding.dll
Exception thrown: 'Tensorflow.RuntimeError' in Tensorflow.Binding.dll
Reproduction Steps
dotnet tool install -g mlnet-osx-arm64
dotnet add package TensorFlow.NET
dotnet add package TensorFlow.Keras
dotnet add package SciSharp.TensorFlow.Redist
dotnet add package Microsoft.ML.TensorFlow.Redist
using static Tensorflow.Binding;
and an example call in a project source file.Known Workarounds
No response
Configuration and Other Information
TensorFlow.NET version=0.150.0
dotnet version=8.0.204
OS Name: Mac OS X
OS Version: 14.4
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/8.0.204/
.NET workloads installed:
[maui]
Installation Source: SDK 8.0.200
Manifest Version: 8.0.7/8.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.maui/8.0.7/WorkloadManifest.json
Install Type: FileBased
.NET SDKs installed:
6.0.404 [/usr/local/share/dotnet/sdk]
7.0.101 [/usr/local/share/dotnet/sdk]
8.0.204 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.12 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
The text was updated successfully, but these errors were encountered: