summaryrefslogtreecommitdiff
path: root/layer/softmax_ce.lua
diff options
context:
space:
mode:
authorcloudygoose <[email protected]>2015-06-09 21:21:07 +0800
committercloudygoose <[email protected]>2015-06-09 21:21:07 +0800
commitea00c456f10eeb6031501f68fede2af7acb4db67 (patch)
tree5c170375cc95c25c993cf567b63e6bbf07a80d28 /layer/softmax_ce.lua
parentc9326adf0e9f91b87a64f05e9901a38bf64ba4f7 (diff)
parentc20af45d0756d5d3004105da10e51d42a382ad66 (diff)
...
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'layer/softmax_ce.lua')
-rw-r--r--layer/softmax_ce.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/layer/softmax_ce.lua b/layer/softmax_ce.lua
index 4147f0c..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[1] 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