reported by @Moustapha6C identified that THCUNN's spatialaveragepooling does not have a shape check. adding it.