Skip to content

Commit

Permalink
Disable BN by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tonmoy-saikia committed Dec 16, 2019
1 parent d73af20 commit 595e998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operations/cell_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}


# Removing DilatedSeparableConv because tf doesnt allow stride!=1 with dilation rate !=1
# Removing DilatedSeparableConv because tf doesn't support stride!=1 with dilation rate !=1
ENCODER_REDUCTION_OPS = {
'none' : lambda C, stride, affine, trainable: ZeroE(stride),
'max_pool_3x3' : lambda C, stride, affine, trainable: tf.keras.layers.MaxPooling2D(3, strides=stride, padding='same', data_format='channels_first'),
Expand Down Expand Up @@ -105,7 +105,7 @@ def __init__(self, affine, axis=1, trainable=True):
super().__init__()
self.trainable = trainable
self.affine = affine
self.no_bn = True #nd.config.get('no_bn', False)
self.no_bn = nd.config.get('no_bn', True)
if not self.no_bn:
if affine:
self.bn = tf.keras.layers.BatchNormalization(axis=1, scale=True, center=True,
Expand Down

0 comments on commit 595e998

Please sign in to comment.