Fix contiguous loop for tanh and hardtanh
Merge pull request #64 from torch/stride_fix

Fix contiguous loop for tanh and hardtanh