piiswrong closed pull request #9433: Backport gcc4 compiler fix to v1.0.0 URL: https://github.com/apache/incubator-mxnet/pull/9433
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/src/operator/operator_tune.cc b/src/operator/operator_tune.cc index 525a66b6f8..87ca611371 100644 --- a/src/operator/operator_tune.cc +++ b/src/operator/operator_tune.cc @@ -42,7 +42,7 @@ double OperatorTuneBase::tuning_weight_scale_ = 0.0; template<> std::vector<__typ$> OperatorTune<__typ$>::data_set_ = {}; \ template<> volatile tune::TuningMode OperatorTuneByType<__typ$>::tuning_mode_ = tune::kAuto; \ template<> volatile int OperatorTune<__typ$>::volatile_int_ = 9; /* arbitrary number */ \ - template<> std::unordered_set<std::string> OperatorTune<__typ$>::operator_names_ = {}; \ + template<> std::unordered_set<std::string> OperatorTune<__typ$>::operator_names_({}); \ template<> bool OperatorTune<__typ$>::output_tuning_data_ = false; \ template<> std::list<void (*)()> *OperatorTune<__typ$>::GetTuningList() { \ static std::list<void (*)()> ll; \ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services