浏览代码

fixed minor issues

Dimitri Korsch 4 年之前
父节点
当前提交
27c3fa33de
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cvmodelz/models/base.py

+ 1 - 1
cvmodelz/models/base.py

@@ -72,7 +72,7 @@ class BaseModel(abc.ABC, chainer.Chain):
 		w_shape = (n_classes, feat_size or clf_layer.W.shape[1])
 		dtype = clf_layer.W.dtype
 
-		clf_layer.in_size, clf_layer.in_size = w_shape
+		clf_layer.out_size, clf_layer.in_size = w_shape
 		clf_layer.W.data = np.zeros(w_shape, dtype=dtype)
 		clf_layer.b.data = np.zeros(w_shape[0], dtype=dtype)