Skip to content

Commit

Permalink
updated ImageHandsOn
Browse files Browse the repository at this point in the history
  • Loading branch information
frankseide committed Aug 26, 2016
1 parent bc60bbe commit 9a04db5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Tutorials/ImageHandsOn/ImageHandsOn_Solution3.cntk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ TrainConvNet = {
{
c = ConvolutionalLayer {depth, (5:5), pad = true, ##### no activation=ReLU
init = "gaussian", initValueScale = initValueScale} (x)
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (c)
b = BatchNormalizationLayer {spatialRank = 2} (c)
r = ReLU (b) ##### now called explicitly
p = MaxPoolingLayer {(3:3), stride = (2:2)} (r)
}.p
Expand Down
4 changes: 2 additions & 2 deletions Tutorials/ImageHandsOn/ImageHandsOn_Solution4.cntk
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ TrainConvNet = {
MySubSampleBN (x, depth, stride) =
{
s = Splice ((MaxPoolingLayer {(1:1), stride = (stride:stride)} (x) : ConstantTensor (0, (1:1:depth/stride))), axis = 3) # sub-sample and pad: [W x H x depth/2] --> [W/2 x H/2 x depth]
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (s)
b = BatchNormalizationLayer {spatialRank = 2} (s)
}.b
MyConvBN (x, depth, initValueScale, stride) =
{
c = ConvolutionalLayer {depth, (3:3), pad = true, stride = (stride:stride), bias = false,
init = "gaussian", initValueScale = initValueScale} (x)
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (c)
b = BatchNormalizationLayer {spatialRank = 2} (c)
}.b
ResNetNode (x, depth) =
{
Expand Down
4 changes: 2 additions & 2 deletions Tutorials/ImageHandsOn/ImageHandsOn_Solution5.cntk
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ TrainConvNet = {
MySubSampleBN (x, depth, stride) =
{
s = Splice ((MaxPoolingLayer {(1:1), stride = (stride:stride)} (x) : ConstantTensor (0, (1:1:depth/stride))), axis = 3) # sub-sample and pad: [W x H x depth/2] --> [W/2 x H/2 x depth]
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (s)
b = BatchNormalizationLayer {spatialRank = 2} (s)
}.b
MyConvBN (x, depth, initValueScale, stride) =
{
c = ConvolutionalLayer {depth, (3:3), pad = true, stride = (stride:stride), bias = false,
init = "gaussian", initValueScale = initValueScale} (x)
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (c)
b = BatchNormalizationLayer {spatialRank = 2} (c)
}.b
ResNetNode (x, depth) =
{
Expand Down
4 changes: 2 additions & 2 deletions Tutorials/ImageHandsOn/ImageHandsOn_Task4_Start.cntk
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ TrainConvNet = {
MySubSampleBN (x, depth, stride) =
{
s = Splice ((MaxPoolingLayer {(1:1), stride = (stride:stride)} (x) : ConstantTensor (0, (1:1:depth/stride))), axis = 3) # sub-sample and pad: [W x H x depth/2] --> [W/2 x H/2 x depth]
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (s)
b = BatchNormalizationLayer {spatialRank = 2} (s)
}.b
MyConvBN (x, depth, initValueScale, stride) =
{
c = ConvolutionalLayer {depth, (3:3), pad = true, stride = (stride:stride), bias = false,
init = "gaussian", initValueScale = initValueScale} (x)
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (c)
b = BatchNormalizationLayer {spatialRank = 2} (c)
}.b
ResNetNode (x, depth) =
{
Expand Down
4 changes: 2 additions & 2 deletions Tutorials/ImageHandsOn/ImageHandsOn_Task6.cntk
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ TrainConvNet = {
MySubSampleBN (x, depth, stride) =
{
s = Splice ((MaxPoolingLayer {(1:1), stride = (stride:stride)} (x) : ConstantTensor (0, (1:1:depth/stride))), axis = 3) # sub-sample and pad: [W x H x depth/2] --> [W/2 x H/2 x depth]
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (s)
b = BatchNormalizationLayer {spatialRank = 2} (s)
}.b
MyConvBN (x, depth, initValueScale, stride) =
{
c = ConvolutionalLayer {depth, (3:3), pad = true, stride = (stride:stride), bias = false,
init = "gaussian", initValueScale = initValueScale} (x)
b = BatchNormalizationLayer {spatialRank = 2, normalizationTimeConstant = 4096} (c)
b = BatchNormalizationLayer {spatialRank = 2} (c)
}.b
ResNetNode (x, depth) =
{
Expand Down

0 comments on commit 9a04db5

Please sign in to comment.