From 8a8dcb6c6bcdcd96984d8a9ecf9032287beeb76d Mon Sep 17 00:00:00 2001 From: Determinant Date: Tue, 9 Jun 2015 17:20:18 +0800 Subject: fix #22 --- layer/softmax_ce.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layer/softmax_ce.lua b/layer/softmax_ce.lua index 4147f0c..4ea7421 100644 --- a/layer/softmax_ce.lua +++ b/layer/softmax_ce.lua @@ -13,7 +13,7 @@ function SoftmaxCELayer:__init(id, global_conf, layer_conf) end function SoftmaxCELayer:init() - if self.dim_in[1] ~= self.dim_in[1] then + if self.dim_in[1] ~= self.dim_in[2] then nerv.error("mismatching dimensions of previous network output and labels") end self.total_ce = 0.0 -- cgit v1.2.3