mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
Update thread_utils.cc
This commit is contained in:
parent
a79d375d24
commit
dbe1b57a71
1 changed files with 2 additions and 2 deletions
|
|
@ -85,8 +85,8 @@ ORT_API_STATUS_IMPL(SetGlobalSpinControl, _Inout_ OrtThreadingOptions* tp_option
|
|||
if (!(allow_spinning == 1 || allow_spinning == 0)) {
|
||||
return OrtApis::CreateStatus(ORT_INVALID_ARGUMENT, "Received invalid value for allow_spinning. Valid values are 0 or 1");
|
||||
}
|
||||
tp_options->intra_op_thread_pool_params.allow_spinning = static_cast<bool>(allow_spinning);
|
||||
tp_options->inter_op_thread_pool_params.allow_spinning = static_cast<bool>(allow_spinning);
|
||||
tp_options->intra_op_thread_pool_params.allow_spinning = (allow_spinning != 0);
|
||||
tp_options->inter_op_thread_pool_params.allow_spinning = (allow_spinning != 0);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue