diff --git a/src/ConvNetSharp.Core/ConvNetSharp.Core.Nuget.csproj b/src/ConvNetSharp.Core/ConvNetSharp.Core.Nuget.csproj
index a013fba8..0432a12e 100644
--- a/src/ConvNetSharp.Core/ConvNetSharp.Core.Nuget.csproj
+++ b/src/ConvNetSharp.Core/ConvNetSharp.Core.Nuget.csproj
@@ -5,8 +5,8 @@
- 0.4.4-alpha
- 0.4.4.0
+ 0.4.5-alpha
+ 0.4.5.0
Cedric Bovar
Deep learning in C#
Copyright (c) 2017
@@ -14,16 +14,16 @@
Cognitio.ConvNetSharp.Core
- 0.4.4-alpha
+ 0.4.5-alpha
false
Deep Learning Convolution
https://github.com/cbovar/ConvNetSharp/blob/master/LICENSE
https://github.com/cbovar/ConvNetSharp
ConvNetSharp.Core
ConvNetSharp.Core
- https://github.com/cbovar/ConvNetSharp/releases/tag/v0.4.4
+ https://github.com/cbovar/ConvNetSharp/releases/tag/v0.4.5
True
- 0.4.4.0
+ 0.4.5.0
@@ -31,7 +31,7 @@
-
+
diff --git a/src/ConvNetSharp.Flow/ConvNetSharp.Flow.Nuget.csproj b/src/ConvNetSharp.Flow/ConvNetSharp.Flow.Nuget.csproj
index e46afde1..640bea8b 100644
--- a/src/ConvNetSharp.Flow/ConvNetSharp.Flow.Nuget.csproj
+++ b/src/ConvNetSharp.Flow/ConvNetSharp.Flow.Nuget.csproj
@@ -5,8 +5,8 @@
- 0.4.4-alpha
- 0.4.4.0
+ 0.4.5-alpha
+ 0.4.5.0
Cedric Bovar
Deep learning in C#
Copyright (c) 2017
@@ -14,17 +14,17 @@
Cognitio.ConvNetSharp.Flow
- 0.4.4-alpha
+ 0.4.5-alpha
false
Deep Learning Convolution
https://github.com/cbovar/ConvNetSharp/blob/master/LICENSE
https://github.com/cbovar/ConvNetSharp
ConvNetSharp.Flow
ConvNetSharp.Flow
- https://github.com/cbovar/ConvNetSharp/releases/tag/v0.4.4
+ https://github.com/cbovar/ConvNetSharp/releases/tag/v0.4.5
True
ConvNetSharp.Flow
- 0.4.4.0
+ 0.4.5.0
@@ -32,8 +32,8 @@
-
-
+
+
diff --git a/src/ConvNetSharp.Volume.GPU/ConvNetSharp.Volume.GPU.Nuget.csproj b/src/ConvNetSharp.Volume.GPU/ConvNetSharp.Volume.GPU.Nuget.csproj
index c171735a..8dd994b8 100644
--- a/src/ConvNetSharp.Volume.GPU/ConvNetSharp.Volume.GPU.Nuget.csproj
+++ b/src/ConvNetSharp.Volume.GPU/ConvNetSharp.Volume.GPU.Nuget.csproj
@@ -5,8 +5,8 @@
- 0.4.4-alpha
- 0.4.4.0
+ 0.4.5-alpha
+ 0.4.5.0
Cedric Bovar
Deep learning in C#
Copyright (c) 2017
@@ -14,15 +14,15 @@
Cognitio.ConvNetSharp.Volume.GPU
- 0.4.4-alpha
+ 0.4.5-alpha
false
Deep Learning Convolution
https://github.com/cbovar/ConvNetSharp/blob/master/LICENSE
https://github.com/cbovar/ConvNetSharp
ConvNetSharp.Volume.GPU
ConvNetSharp.Volume.GPU
- 0.4.4.0
- https://github.com/cbovar/ConvNetSharp/releases/tag/v0.4.4
+ 0.4.5.0
+ https://github.com/cbovar/ConvNetSharp/releases/tag/v0.4.5
True
@@ -38,12 +38,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/src/ConvNetSharp.Volume.GPU/GpuContext.cs b/src/ConvNetSharp.Volume.GPU/GpuContext.cs
index 267a198b..b5a84df6 100644
--- a/src/ConvNetSharp.Volume.GPU/GpuContext.cs
+++ b/src/ConvNetSharp.Volume.GPU/GpuContext.cs
@@ -1,7 +1,6 @@
using System;
using System.Diagnostics;
using ManagedCuda;
-using ManagedCuda.CudaDNN;
namespace ConvNetSharp.Volume.GPU
{
diff --git a/src/ConvNetSharp.Volume.GPU/KernelLoader.cs b/src/ConvNetSharp.Volume.GPU/KernelLoader.cs
index 8a55e206..87ccc0de 100644
--- a/src/ConvNetSharp.Volume.GPU/KernelLoader.cs
+++ b/src/ConvNetSharp.Volume.GPU/KernelLoader.cs
@@ -3,7 +3,6 @@
using System.IO;
using System.Linq;
using ManagedCuda;
-using ManagedCuda.BasicTypes;
using ManagedCuda.NVRTC;
using ManagedCuda.VectorTypes;
@@ -27,6 +26,11 @@ private void AddKernel(string name, CudaKernel kernel)
public void LoadKernel(string name, Stream stream)
{
+ if (stream == null)
+ {
+ throw new ArgumentException($"Couldn't load kernel '{name}'.", nameof(stream));
+ }
+
using (StreamReader reader = new StreamReader(stream))
{
string result = reader.ReadToEnd();
diff --git a/src/ConvNetSharp.Volume/ConvNetSharp.Volume.csproj b/src/ConvNetSharp.Volume/ConvNetSharp.Volume.csproj
index 14dbac89..4974ceb2 100644
--- a/src/ConvNetSharp.Volume/ConvNetSharp.Volume.csproj
+++ b/src/ConvNetSharp.Volume/ConvNetSharp.Volume.csproj
@@ -5,8 +5,8 @@
- 0.4.4-alpha
- 0.4.4.0
+ 0.4.5-alpha
+ 0.4.5.0
Cedric Bovar
Deep learning in C#
Copyright (c) 2017
@@ -14,14 +14,14 @@
Cognitio.ConvNetSharp.Volume
- 0.4.4-alpha
+ 0.4.5-alpha
false
Deep Learning Convolution
https://github.com/cbovar/ConvNetSharp/blob/master/LICENSE
https://github.com/cbovar/ConvNetSharp
True
- https://github.com/cbovar/ConvNetSharp/releases/tag/v0.4.4
- 0.4.4.0
+ https://github.com/cbovar/ConvNetSharp/releases/tag/v0.4.5
+ 0.4.5.0