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

Method EvaluateOnGPU

catboost/node-package/src/model.cpp:243–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243void TModel::EvaluateOnGPU(const Napi::CallbackInfo& info) {
244 Napi::Env env = info.Env();
245 if (!NHelper::Check(env, info.Length() >= 1, "Wrong number of arguments - expected 1") ||
246 !NHelper::Check(env, info[0].IsNumber(), "Expected the first argument to be a numeric deviceId"))
247 {
248 return;
249 }
250
251 const bool status = EnableGPUEvaluation(this->Handle, info[0].As<Napi::Number>().Int32Value());
252 NHelper::CheckStatus(env, status);
253 return;
254}
255
256Napi::Value TModel::GetModelFloatFeaturesCount(const Napi::CallbackInfo& info) {
257 Napi::Env env = info.Env();

Callers

nothing calls this directly

Calls 5

EnableGPUEvaluationFunction · 0.85
CheckStatusFunction · 0.85
CheckFunction · 0.70
LengthMethod · 0.45
Int32ValueMethod · 0.45

Tested by

no test coverage detected