| 241 | } |
| 242 | |
| 243 | void 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 | |
| 256 | Napi::Value TModel::GetModelFloatFeaturesCount(const Napi::CallbackInfo& info) { |
| 257 | Napi::Env env = info.Env(); |
nothing calls this directly
no test coverage detected