Skip to content
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

The type initializer for 'Tensorflow.tf' threw an exception.” #253

Closed
309441166 opened this issue May 30, 2019 · 2 comments
Closed

The type initializer for 'Tensorflow.tf' threw an exception.” #253

309441166 opened this issue May 30, 2019 · 2 comments

Comments

@309441166
Copy link

I get this error:

The type initializer for 'Tensorflow.tf' threw an exception.

DllNotFoundException: Unable to load DLL 'tensorflow' or one of its dependencies: 找不到指定的模块。 (Exception from HRESULT: 0x8007007E)

---------- MY CODE----
using System;
using Tensorflow;

namespace TFNet
{
class Program
{
static void Main(string[] args)
{
//Console.WriteLine("Hello World!");
var hello = tf.constant("Hello, TensorFlow!");
}
}
}

Nuget TensorFlow.NET(0.8.0)
.NET Core 2.2

@Oceania2018
Copy link
Member

Same issue as #252

@18628271760
Copy link

18628271760 commented Aug 21, 2019

Use nuget to install Microsoft.ML.TensorFlow.Redist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants