Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 00d4418

Browse files
authored
Merge pull request #30 from MASMAS-Studio/patch-1
Update 02 - tf.layers.py
2 parents 0a4ffca + 306d764 commit 00d4418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎07 - CNN/02 - tf.layers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
# 활성화 함수 적용은 물론, 컨볼루션 신경망을 만들기 위한 나머지 수치들은 알아서 계산해줍니다.
1919
# 특히 Weights 를 계산하는데 xavier_initializer 를 쓰고 있는 등,
2020
# 크게 신경쓰지 않아도 일반적으로 효율적인 신경망을 만들어줍니다.
21-
L1 = tf.layers.conv2d(X, 32, [3, 3])
21+
L1 = tf.layers.conv2d(X, 32, [3, 3], activation=tf.nn.relu)
2222
L1 = tf.layers.max_pooling2d(L1, [2, 2], [2, 2])
2323
L1 = tf.layers.dropout(L1, 0.7, is_training)
2424

25-
L2 = tf.layers.conv2d(L1, 64, [3, 3])
25+
L2 = tf.layers.conv2d(L1, 64, [3, 3], activation=tf.nn.relu)
2626
L2 = tf.layers.max_pooling2d(L2, [2, 2], [2, 2])
2727
L2 = tf.layers.dropout(L2, 0.7, is_training)
2828

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /