Skip to content

Cannot load Tensorflow DLL error. #144

Closed
@JTrotta

Description

@JTrotta

Any idea? obviously tensorflow.dll is in bin folder

Setting Eager mode... System.TypeInitializationException: The type initializer for 'Tensorflow.tf' thr ew an exception. ---> System.DllNotFoundException: Unable to load DLL 'tensorflo w' or one of its dependencies: Exception from HRESULT: 0xC000001D at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-maste r\src\TensorFlowNET.Core\Graphs\Graph.cs:line 37 at Tensorflow.tf..cctor() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-master\ src\TensorFlowNET.Core\tf.cs:line 18 --- End of inner exception stack trace --- at Tensorflow.tf.enable_eager_execution() in C:\Users\Sviluppo\Desktop\Tensor Flow.NET-master\src\TensorFlowNET.Core\tf.cs:line 33 at TensorFlowNET.Examples.BasicEagerApi.Run() in C:\Users\Sviluppo\Desktop\Te nsorFlow.NET-master\test\TensorFlowNET.Examples\BasicEagerApi.cs:line 19 at TensorFlowNET.Examples.Program.Main(String[] args) in C:\Users\Sviluppo\De sktop\TensorFlow.NET-master\test\TensorFlowNET.Examples\Program.cs:line 21 System.TypeInitializationException: The type initializer for 'Tensorflow.tf' thr ew an exception. ---> System.DllNotFoundException: Unable to load DLL 'tensorflo w' or one of its dependencies: Exception from HRESULT: 0xC000001D at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-maste r\src\TensorFlowNET.Core\Graphs\Graph.cs:line 37 at Tensorflow.tf..cctor() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-master\ src\TensorFlowNET.Core\tf.cs:line 18 --- End of inner exception stack trace --- at Tensorflow.tf.Graph() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-master\s rc\TensorFlowNET.Core\tf.cs:line 45 at Tensorflow.ops.get_default_graph() in C:\Users\Sviluppo\Desktop\TensorFlow .NET-master\src\TensorFlowNET.Core\ops.py.cs:line 48 at Tensorflow.constant_op.Constant(NDArray nd, String name, Boolean verify_sh ape) in C:\Users\Sviluppo\Desktop\TensorFlow.NET-master\src\TensorFlowNET.Core\T ensors\constant_op.cs:line 24 at Tensorflow.tf.constant(NDArray nd, String name, Boolean verify_shape) in C :\Users\Sviluppo\Desktop\TensorFlow.NET-master\src\TensorFlowNET.Core\Tensors\tf .constant.cs:line 12 at TensorFlowNET.Examples.BasicOperations.Run() in C:\Users\Sviluppo\Desktop\ TensorFlow.NET-master\test\TensorFlowNET.Examples\BasicOperations.cs:line 22 at TensorFlowNET.Examples.Program.Main(String[] args) in C:\Users\Sviluppo\De sktop\TensorFlow.NET-master\test\TensorFlowNET.Examples\Program.cs:line 21 System.TypeInitializationException: The type initializer for 'Tensorflow.tf' thr ew an exception. ---> System.DllNotFoundException: Unable to load DLL 'tensorflo w' or one of its dependencies: Exception from HRESULT: 0xC000001D at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-maste r\src\TensorFlowNET.Core\Graphs\Graph.cs:line 37 at Tensorflow.tf..cctor() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-master\ src\TensorFlowNET.Core\tf.cs:line 18 --- End of inner exception stack trace --- at Tensorflow.tf.Graph() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-master\s rc\TensorFlowNET.Core\tf.cs:line 45 at Tensorflow.ops.get_default_graph() in C:\Users\Sviluppo\Desktop\TensorFlow .NET-master\src\TensorFlowNET.Core\ops.py.cs:line 48 at Tensorflow.constant_op.Constant(NDArray nd, String name, Boolean verify_sh ape) in C:\Users\Sviluppo\Desktop\TensorFlow.NET-master\src\TensorFlowNET.Core\T ensors\constant_op.cs:line 24 at Tensorflow.tf.constant(NDArray nd, String name, Boolean verify_shape) in C :\Users\Sviluppo\Desktop\TensorFlow.NET-master\src\TensorFlowNET.Core\Tensors\tf .constant.cs:line 12 at TensorFlowNET.Examples.HelloWorld.Run() in C:\Users\Sviluppo\Desktop\Tenso rFlow.NET-master\test\TensorFlowNET.Examples\HelloWorld.cs:line 21 at TensorFlowNET.Examples.Program.Main(String[] args) in C:\Users\Sviluppo\De sktop\TensorFlow.NET-master\test\TensorFlowNET.Examples\Program.cs:line 21 System.TypeInitializationException: The type initializer for 'Tensorflow.tf' thr ew an exception. ---> System.DllNotFoundException: Unable to load DLL 'tensorflo w' or one of its dependencies: Exception from HRESULT: 0xC000001D at Tensorflow.c_api.TF_NewGraph() at Tensorflow.Graph..ctor() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-maste r\src\TensorFlowNET.Core\Graphs\Graph.cs:line 37 at Tensorflow.tf..cctor() in C:\Users\Sviluppo\Desktop\TensorFlow.NET-master\ src\TensorFlowNET.Core\tf.cs:line 18 --- End of inner exception stack trace --- at TensorFlowNET.Examples.LinearRegression.Run() in C:\Users\Sviluppo\Desktop \TensorFlow.NET-master\test\TensorFlowNET.Examples\LinearRegression.cs:line 32 at TensorFlowNET.Examples.Program.Main(String[] args) in C:\Users\Sviluppo\De sktop\TensorFlow.NET-master\test\TensorFlowNET.Examples\Program.cs:line 21

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions