teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

コード修正

2018/04/28 04:12

投稿

hayataka2049
hayataka2049

スコア30939

answer CHANGED
@@ -9,7 +9,7 @@
9
9
  super(DNN, self).__init__()
10
10
 
11
11
  with self.init_scope():
12
- l1 = L.Linear(784, 100)
12
+ self.l1 = L.Linear(784, 100)
13
- l2 = L.Linear(100, 100)
13
+ self.l2 = L.Linear(100, 100)
14
- l3 = L.Linear(100, 10)
14
+ self.l3 = L.Linear(100, 10)
15
15
  ```