diff options
author | Determinant <[email protected]> | 2015-06-09 17:27:09 +0800 |
---|---|---|
committer | Determinant <[email protected]> | 2015-06-09 17:27:09 +0800 |
commit | 480de75f52a4f185546978da023a77e27a8644c3 (patch) | |
tree | 8802553466b18503b255944ef4f30fa81157fe03 /layer/softmax_ce.lua | |
parent | 8a8dcb6c6bcdcd96984d8a9ecf9032287beeb76d (diff) |
fix #20
Diffstat (limited to 'layer/softmax_ce.lua')
-rw-r--r-- | layer/softmax_ce.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layer/softmax_ce.lua b/layer/softmax_ce.lua index 4ea7421..2e1f5fb 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[2] then + if not self.compressed and (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 |