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

Method Validate

catboost/private/libs/options/system_options.cpp:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void TSystemOptions::Validate() const {
47 CB_ENSURE(NumThreads > 0, "thread count should be positive");
48 CB_ENSURE(GpuRamPart.GetUnchecked() > 0 && GpuRamPart.GetUnchecked() <= 1.0, "GPU ram part should be in (0, 1]");
49 ParseMemorySizeDescription(CpuUsedRamLimit.Get());
50 ParseMemorySizeDescription(PinnedMemorySize.GetUnchecked());
51}
52
53bool TSystemOptions::IsMaster() const {
54 return NodeType == ENodeType::Master;

Callers

nothing calls this directly

Calls 2

GetMethod · 0.45

Tested by

no test coverage detected