I am trying to run this example with VS2019 on GPU (with CPU it works)
https://github.com/deepakkumar1984/MxNet.Sharp/blob/master/examples/BasicExamples/LogisticRegressionExplained.cs
with NVidia RTX 3060 with these packages
https://www.nuget.org/packages/MxNet-CU101.Runtime.Redist/1.5.0
https://www.nuget.org/packages/MxNet-CU101MKL.Runtime.Redist/1.5.0
https://www.nuget.org/packages/MxNet.Sharp/1.5.2
And I get this error
Unhandled Exception: System.TypeInitializationException: The type initializer for 'MxNet.Operator' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'libmxnet': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at MxNet.Interop.NativeMethods.MXSymbolListAtomicSymbolCreators(UInt32& out_size, IntPtr& out_array)
at MxNet.OpMap..ctor()
at MxNet.Operator..cctor()
--- End of inner exception stack trace ---
at MxNet.Operator..ctor(String operatorName)
at MxNet.nd.Random.Normal(Single loc, Single scale, Shape shape, Context ctx, DType dtype)
at DNNTest.Program.GetRandomData(Int32 size, Context ctx)
In this line
var x = nd.Random.Normal(0, 1, shape: new Shape(size, 10), ctx: ctx);
I have the mxnet.dll and libmxnet.dll files in the bin folder
User contributions licensed under CC BY-SA 3.0