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

質問編集履歴

2

タイトルの改善

2020/12/23 01:32

投稿

taiki6004
taiki6004

スコア0

title CHANGED
@@ -1,1 +1,1 @@
1
- pfrl,pytorchでのR2D2の実装
1
+ pfrl,pytorchでのR2D2の実装の際の引数のエラー
body CHANGED
File without changes

1

誤字修正

2020/12/23 01:32

投稿

taiki6004
taiki6004

スコア0

title CHANGED
File without changes
body CHANGED
@@ -84,10 +84,10 @@
84
84
  #nn.init.kaiming_normal_(self.al1.weight)
85
85
 
86
86
  self.fc2 = nn.Linear(512, 512)
87
- nn.init.kaiming_normal_(self.al2.weight)
87
+ nn.init.kaiming_normal_(self.fc2.weight)
88
88
 
89
89
  self.fc3 = nn.Linear(512, n_actions*n_atoms)
90
- nn.init.kaiming_normal_(self.al3.weight)
90
+ nn.init.kaiming_normal_(self.fc3.weight)
91
91
 
92
92
  def forward(self, state):
93
93
  img = state[:,:-self.n_added_input]