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 4f69541 commit a808277Copy full SHA for a808277
include/xgboost/cache.h
@@ -79,7 +79,7 @@ class DMatrixCache {
79
auto it = container_.find(p_fmat);
80
CHECK(it != container_.cend());
81
// Re-new the cache if this has never been read.
82
- if (it->second.ref.expired() || !it->second.ref->HasBeenRead()) {
+ if (it->second.ref.expired() || !it->second.ref.lock()->HasBeenRead()) {
83
expired.push_back(it->first);
84
} else {
85
remained.push(it->first);
0 commit comments