We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cd241 commit b908680Copy full SHA for b908680
src/metric/elementwise_metric.cu
@@ -217,7 +217,7 @@ struct EvalError {
217
}
218
219
const char *Name() const {
220
- static std::string name;
+ static thread_local std::string name;
221
if (has_param_) {
222
std::ostringstream os;
223
os << "error";
@@ -315,7 +315,7 @@ struct EvalTweedieNLogLik {
315
<< "tweedie variance power must be in interval [1, 2)";
316
317
318
319
320
os << "tweedie-nloglik@" << rho_;
321
name = os.str();
0 commit comments