Fix build error about `if` being constant in Eigen and Protobuf (#8291)
Fix build error about `if` being constant in Eigen and Protobuf (#8291)

* Fix build error about if being constant in Eigen and Protobuf
* Update with Changming's proposal
microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime