fixed tanh to not return NaN for input values outside the range [-40, 40]
Fixed header order to satisfy linter
Merge pull request #1455 from seanbell/tanh-fix

Fix tanh layer for badly scaled input values
remove redundant code in ConvolutionLayer::Reshape
Merge pull request #1505 from longjon/conv-dedup

Remove redundant code in ConvolutionLayer::Reshape