Artelnics / opennn

OpenNN - Open Neural Networks Library
http://www.opennn.net
GNU Lesser General Public License v3.0
1.12k stars 354 forks source link

Eliminating few compile time warnings #307

Open shleym2000 opened 1 month ago

shleym2000 commented 1 month ago

Fixes compiling problem

shleym2000 commented 1 month ago

Without this change, there are multiple warnings like the following

1>C:\OpenNN\eigen\unsupported\Eigen\CXX11\src\Tensor\Tensor.h(76,49): warning C4554: '&': check operator precedence for possible error; use parentheses to clarify precedence
1>(compiling source file '../SandBox/OpenNN/opennn/adaptive_moment_estimation.cpp')
1>    C:\OpenNN\eigen\unsupported\Eigen\CXX11\src\Tensor\Tensor.h(76,49):
1>    the template instantiation context (the oldest one first) is
1>        C:\OpenNN\opennn\histogram.h(74,19):
1>        see reference to class template instantiation 'Eigen::Tensor<opennn::type,1,0,Eigen::DenseIndex>' being compiled