user610programmer
.NET Framework and TensorFlow.NET/Machine Learning
I was assuming it was. I just started over installing everything in a new project and it seems like it has gotten passed the backend problem. Now it is just a TensorFlow.Binding error:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Tensorflow.Binding' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at Tensorflow.c_api.TF_Version()
at Tensorflow.tensorflow..ctor()
at Tensorflow.Binding..cctor()
--- End of inner exception stack trace ---
at Tensorflow.Binding.get_tf()
at TFTest.Program.Main(String[] args) in *\Program.cs:line 12
I am just testing it with some test code which is:
using System;
using static Tensorflow.Binding;
namespace TFTest
{
internal class Program
{
static void Main(string[] args)
{
var hello = tf.constant("hello");
Console.WriteLine(hello);
}
}
}
10 replies
.NET Framework and TensorFlow.NET/Machine Learning
I was able to install the SciSharp.TensorFlow.Redist package but it basically ignored it. On TensorFlow.NET's github page, someone was having a similar issue and one of the mods said that .NET Framework didn't support backend packages well. They could've misunderstood something or maybe something got updated but it hasn't worked for me thus far
10 replies