質問編集履歴
4
文法訂正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
RuntimeErrorがでてしまいます
|
1
|
+
pythonでRuntimeErrorがでてしまいます
|
test
CHANGED
File without changes
|
3
文法訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
エラーが出力されてしまいます。
|
4
4
|
|
5
|
+
もしよろしければ、ご教授よろしくお願いいたします
|
6
|
+
|
5
|
-
何卒、
|
7
|
+
何卒、よろしくお願いいたします。
|
6
8
|
|
7
9
|
|
8
10
|
|
@@ -414,6 +416,6 @@
|
|
414
416
|
|
415
417
|
Python 3.6.6
|
416
418
|
|
419
|
+
torch (0.2.0.post2)
|
420
|
+
|
417
421
|
mecab-python3 (0.7)
|
418
|
-
|
419
|
-
torch (0.2.0.post2)
|
2
文法訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,19 +10,19 @@
|
|
10
10
|
|
11
11
|
Traceback (most recent call last):
|
12
12
|
|
13
|
-
File "/home/
|
13
|
+
File "/home/hoge/train.py", line 56, in <module>
|
14
14
|
|
15
15
|
model = RNN(n_vocab, embedding_dim, hidden_dim)
|
16
16
|
|
17
|
-
File "/home/
|
17
|
+
File "/home/hoge/train.py", line 24, in __init__
|
18
18
|
|
19
19
|
self.decoder = nn.Linear(hidden_dim, n_vocab)
|
20
20
|
|
21
|
-
File "/home/
|
21
|
+
File "/home/hoge/.local/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 44, in __init__
|
22
22
|
|
23
23
|
self.reset_parameters()
|
24
24
|
|
25
|
-
File "/home/
|
25
|
+
File "/home/hoge/.local/lib/python3.6/site-packages/torch/nn/modules/linear.py", line 47, in reset_parameters
|
26
26
|
|
27
27
|
stdv = 1. / math.sqrt(self.weight.size(1))
|
28
28
|
|
1
開発環境を記述
test
CHANGED
File without changes
|
test
CHANGED
@@ -407,3 +407,13 @@
|
|
407
407
|
torch.save(model.state_dict(), model_name)
|
408
408
|
|
409
409
|
```
|
410
|
+
|
411
|
+
Ubuntu 18.04
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
Python 3.6.6
|
416
|
+
|
417
|
+
mecab-python3 (0.7)
|
418
|
+
|
419
|
+
torch (0.2.0.post2)
|