SciSharp / TensorFlow.NET

.NET Standard bindings for Google's TensorFlow for developing, training and deploying Machine Learning models in C# and F#.
https://scisharp.github.io/tensorflow-net-docs
Apache License 2.0
3.23k stars 517 forks source link

After installing TensorFlow.NET, #1225

Open jaroslav-hook opened 8 months ago

jaroslav-hook commented 8 months ago

Description

crash crash

Reproduction Steps

using Tensorflow.Common.Types; using Tensorflow.Keras.ArgsDefinition; using Tensorflow.Keras.Utils; using Tensorflow.Keras;

// namespace Tensorflow.Keras.Engine;

// tryig out the tesor flow // https://www.w3computing.com/articles/deep-learning-csharp-tensorflow-neural-networks/

namespace Vt_Lin { class Program { static void Main(string[] args) { string helloMessage = "This is my Hello World 2020 C#"; Console.WriteLine("{0}, {1}",helloMessage,"\n");

        var hello = tf.constant("Hello, TensorFlow!");<== CRASHES HERE 
        Console.WriteLine(hello);

Known Workarounds

none.. it claims binding cannot found and I tried everything all this is installed : = TensorFlow.NET
= TensorFlow.Keras
= SciSharp.TensorFlow.Redist
= SciSharp.TensorFlow.Redist-Windows-GPU

Configuration and Other Information

No response

ANNNgellalala commented 8 months ago

it works after install VC_redist.x64。 image

le-tan-phuc commented 4 months ago

Reinstalling VC_redist64 doesn't solve the problem for me