We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1e7e34 + 6299d70 commit 1fe3211Copy full SHA for 1fe3211
NeuralNetwork.NET/cuDNN/CuDnnService.cs
@@ -1,4 +1,5 @@
1
using System;
2
+using System.IO;
3
using System.Linq;
4
using System.Threading;
5
using Alea;
@@ -75,7 +76,7 @@ public static bool IsAvailable
75
76
// Calling this directly could cause a crash in the <Module> loader due to the missing .dll files
77
return CuDnnSupportHelper.IsGpuAccelerationSupported();
78
}
- catch (TypeInitializationException)
79
+ catch (Exception e) when (e is FileNotFoundException || e is TypeInitializationException)
80
{
81
// Missing .dll file
82
return false;
0 commit comments