Use CUDA_KERNEL_LOOP in the macro DEFINE_AND_INSTANTIATE_GPU_UNARY_FUNC
Merge pull request #275 from kloudkl/fix_kernel_for_loop_in_macro

Fix kernel for loop in macro
add LRN within map layer and dependencies (eltwise product and power)
add unit tests for new layer types
use average pool instead of conv
add padding for average pooling
bug fix: average pooling already divides by N^2
use split layer in LRNMapLayer
use bvlc copyright
add cifar example using LRN_MAP (just like the cuda-convnet layers-18pct
architecture) instead of LRN
fix some param bugs
merge LRNMapLayer into LRNLayer with norm_region proto field
replace old cifar full with within channel LRN (per cuda-convnet
layers-18pct) -- slightly slower (5000 iters now takes 6:57; took 6:43
previously), but slightly more accurate (exactly 82% test accuracy; got
81.65% before)
minor polishing
remove unnecessary local variables from EltwiseProductLayer
don't recompute pre_pad
cleanup extra LRN method names
minor unit test cleanup
cleanup power layer test suite