Allowed to check gradients with non-contiguous inputs.
Merge pull request #26 from fidlej/topic_non_contiguous

Allowed to check gradients with non-contiguous inputs.