Skip to content

Commit 10e162b

Browse files
authored
Update tf_cnn_basic.py
1 parent 42c8618 commit 10e162b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf_cnn_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def BN(data, bn_momentum=0.9, name=None):
5-
return tf.contrib.layers.batch_norm(data, momentum=bn_momentum, name=('%s__bn' % name))
5+
return tf.layers.batch_normalization(data, momentum=bn_momentum, name=('%s__bn' % name))
66

77

88
def AC(data, name=None):

0 commit comments

Comments
 (0)