Fix thread safety of softmax prediction. (#7104)
This commit is contained in:
@@ -53,7 +53,7 @@ class ObjFunction : public Configurable {
|
||||
* \brief transform prediction values, this is only called when Prediction is called
|
||||
* \param io_preds prediction values, saves to this vector as well
|
||||
*/
|
||||
virtual void PredTransform(HostDeviceVector<bst_float>*) {}
|
||||
virtual void PredTransform(HostDeviceVector<bst_float>*) const {}
|
||||
|
||||
/*!
|
||||
* \brief transform prediction values, this is only called when Eval is called,
|
||||
|
||||
Reference in New Issue
Block a user