提交 8654e8a5 编写于 作者: W wangmeng28

Fix dims in config parser for factorization machine layer

上级 9741ade8
...@@ -3794,7 +3794,7 @@ class FactorizationMachineLayer(LayerBase): ...@@ -3794,7 +3794,7 @@ class FactorizationMachineLayer(LayerBase):
self.config.factor_size = factor_size self.config.factor_size = factor_size
input_layer = self.get_input_layer(0) input_layer = self.get_input_layer(0)
psize = input_layer.size * factor_size psize = input_layer.size * factor_size
dims = [input_layer.size, 1] dims = [input_layer.size, factor_size]
self.create_input_parameter(0, psize, dims) self.create_input_parameter(0, psize, dims)
......
...@@ -22,7 +22,7 @@ parameters { ...@@ -22,7 +22,7 @@ parameters {
initial_mean: 0.0 initial_mean: 0.0
initial_std: 0.03125 initial_std: 0.03125
dims: 1024 dims: 1024
dims: 1 dims: 10
initial_strategy: 0 initial_strategy: 0
initial_smart: true initial_smart: true
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册