-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG Report]: Tensorflow.RuntimeError: Tensorflow.NET cannot find a backend despite having installed SciSharp.TensorFlow.Redist on macOS M1 #1249
Comments
@Oceania2018 Does redist 2.16.0 include a MAC backend when publishing it? |
The same issue with simple console app example:
Installed packs:
Exception: MacOS, M2 Ultra. |
I got the same problem as well using System;
Installed packs:
Exception: |
To resolve the issue in your macOS: CPU version for MacOSPM> Install-Package SciSharp.TensorFlow.Redist-OSX This should resolve the issue. |
@Folasayo-Samuel unfortunately it didn't helped me. I don't have PowerShell on Mac, so I ran |
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: