回答編集履歴

1

解決

2020/01/02 11:20

投稿

hosihosieruhu
hosihosieruhu

スコア8

test CHANGED
@@ -1,45 +1 @@
1
- エラーは文字数制限で貼れなかったのでこちらに失礼します。
2
-
3
- 以下がエラー文です
1
+ 解決しました。。。
4
-
5
- ```
6
-
7
- Traceback (most recent call last):
8
-
9
- File "chapt07-4.py", line 68, in <module>
10
-
11
- chainer.serializers.load_hdf5( 'chapt07.hdf5', model )
12
-
13
- File "/home/youser/miniconda3/envs/name/lib/python3.7/site-packages/chainer/serializers/hdf5.py", line 175, in load_hdf5
14
-
15
- d.load(obj)
16
-
17
- File "/home/youser/miniconda3/envs/name/lib/python3.7/site-packages/chainer/serializer.py", line 83, in load
18
-
19
- obj.serialize(self)
20
-
21
- File "/home/youser/miniconda3/envs/name/lib/python3.7/site-packages/chainer/link.py", line 1001, in serialize
22
-
23
- d[name].serialize(serializer[name])
24
-
25
- File "/home/youser/miniconda3/envs/name/lib/python3.7/site-packages/chainer/link.py", line 1001, in serialize
26
-
27
- d[name].serialize(serializer[name])
28
-
29
- File "/home/youser/miniconda3/envs/name/lib/python3.7/site-packages/chainer/link.py", line 651, in serialize
30
-
31
- data = serializer(name, param.data)
32
-
33
- File "/home/youser/miniconda3/envs/name/lib/python3.7/site-packages/chainer/serializers/hdf5.py", line 140, in __call__
34
-
35
- dataset.read_direct(value)
36
-
37
- File "/home/youser/miniconda3/envs/name/lib/python3.7/site-packages/h5py/_hl/dataset.py", line 732, in read_direct
38
-
39
- for mspace in dest_sel.broadcast(source_sel.mshape):
40
-
41
- File "/home/youser/miniconda3/envs/name/lib/python3.7/site-packages/h5py/_hl/selections.py", line 299, in broadcast
42
-
43
- raise TypeError("Can't broadcast %s -> %s" % (target_shape, self.mshape))
44
-
45
- TypeError: Can't broadcast (200,) -> (80,)