MCPcopy Create free account
hub / github.com/catboost/catboost / GetMutable

Method GetMutable

catboost/libs/model/model.h:636–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

634 }
635
636 TModelTrees* GetMutable() {
637 if (Trees.RefCount() > 1) {
638 Trees = MakeAtomicShared<TModelTrees>(*Trees);
639 }
640 return Trees.Get();
641 }
642private:
643 TAtomicSharedPtr<TModelTrees> Trees = MakeAtomicShared<TModelTrees>();
644};

Callers 15

GetInitialBordersFunction · 0.80
Y_UNIT_TESTFunction · 0.80
TruncateMethod · 0.80
SetScaleAndBiasMethod · 0.80
LoadMethod · 0.80
InitNonOwningMethod · 0.80
UpdateDynamicDataMethod · 0.80
SumModelsFunction · 0.80

Calls 2

RefCountMethod · 0.45
GetMethod · 0.45

Tested by 6

SimpleFloatModelFunction · 0.64
SimpleTextModelFunction · 0.64
SimpleDeepTreeModelFunction · 0.64
SimpleAsymmetricModelFunction · 0.64
MultiValueFloatModelFunction · 0.64