Skip to content

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

Closed
@309441166

Description

@309441166

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions