Skip to content

Commit cc5e74f

Browse files
committed
fix formatting
1 parent 84a5653 commit cc5e74f

File tree

7 files changed

+654
-655
lines changed

7 files changed

+654
-655
lines changed

DeepLearnMac/Activation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public static class Activation
77
{
88
public static Pixbuf Get(ManagedCNN cnn, int layer, int map)
99
{
10-
if (layer >= 0 && layer < cnn.Layers.Count && map >=0 && map < cnn.Layers[layer].Activation.i)
10+
if (layer >= 0 && layer < cnn.Layers.Count && map >= 0 && map < cnn.Layers[layer].Activation.i)
1111
{
1212
var Activation = new ManagedArray(cnn.Layers[layer].Activation.x, cnn.Layers[layer].Activation.y, cnn.Layers[layer].Activation.z);
1313
var Transposed = new ManagedArray(Activation);
@@ -17,8 +17,8 @@ public static Pixbuf Get(ManagedCNN cnn, int layer, int map)
1717
ManagedMatrix.Transpose(Transposed, Activation);
1818

1919
// Get normalization values
20-
double min = Double.MaxValue;
21-
double max = double.MinValue;
20+
double min = Double.MaxValue;
21+
double max = double.MinValue;
2222

2323
for (int y = 0; y < Transposed.y; y++)
2424
{

DeepLearnMac/Bias.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using DeepLearnCS;
22
using Gdk;
33
using System;
4-
using System.Runtime.InteropServices;
54

65
public static class Bias
76
{
@@ -15,8 +14,8 @@ public static Pixbuf Get(ManagedCNN cnn, int layer)
1514
var pixbuf = new Pixbuf(Colorspace.Rgb, false, 8, Transposed.x, Transposed.y);
1615

1716
// Get normalization values
18-
double min = Double.MaxValue;
19-
double max = Double.MinValue;
17+
double min = Double.MaxValue;
18+
double max = Double.MinValue;
2019

2120
FullyConnected.GetNormalization(Transposed, ref min, ref max);
2221

DeepLearnMac/Classify.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void Pixbuf(Pixbuf Digit, ManagedCNN cnn, ref int digit, ref doubl
1717
cnn.FeedForward(Transposed);
1818

1919
digit = 0;
20-
double max = double.MinValue;
20+
double max = double.MinValue;
2121

2222
for (int y = 0; y < cnn.Output.y; y++)
2323
{
@@ -61,7 +61,7 @@ public static void Convert(Pixbuf pixbuf, ManagedArray digit)
6161
b = Marshal.ReadByte(offset, 2);
6262
}
6363

64-
digit[x, y] = (r * 299 + g * 587 + b * 114) / (255000);
64+
digit[x, y] = (r * 299 + g * 587 + b * 114) / (255000);
6565
}
6666
}
6767
}

DeepLearnMac/Feature.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public static Pixbuf Get(ManagedCNN cnn, int layer, int i, int j)
1717
ManagedMatrix.Transpose(Transposed, FeatureMap);
1818

1919
// Get normalization values
20-
double min = Double.MaxValue;
21-
double max = Double.MinValue;
20+
double min = Double.MaxValue;
21+
double max = Double.MinValue;
2222

2323
FullyConnected.GetNormalization(Transposed, ref min, ref max);
2424

DeepLearnMac/FullyConnected.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public static Pixbuf Get(ManagedArray layer, bool transpose = true)
1313

1414
var pixbuf = new Pixbuf(Colorspace.Rgb, false, 8, Transposed.x, Transposed.y);
1515

16-
double min = Double.MaxValue;
17-
double max = Double.MinValue;
16+
double min = Double.MaxValue;
17+
double max = Double.MinValue;
1818

1919
GetNormalization(Transposed, ref min, ref max);
2020

@@ -28,8 +28,8 @@ public static Pixbuf Get(ManagedArray layer, bool transpose = true)
2828
{
2929
var pixbuf = new Pixbuf(Colorspace.Rgb, false, 8, layer.x, layer.y);
3030

31-
double min = Double.MaxValue;
32-
double max = Double.MinValue;
31+
double min = Double.MaxValue;
32+
double max = Double.MinValue;
3333

3434
GetNormalization(layer, ref min, ref max);
3535

0 commit comments

Comments
 (0)