forked from mindspore-Ecosystem/mindspore
!23032 [MSLITE] Fix ci test timeout.
Merge pull request !23032 from wangshaocong/bugfix_ci
This commit is contained in:
commit
15189a7f8c
|
@ -30,6 +30,7 @@
|
|||
|
||||
namespace mindspore {
|
||||
constexpr int kDefaultSpinCount = 300000;
|
||||
constexpr int kMinSpinCount = 3000;
|
||||
constexpr int kDefaultFrequency = 1;
|
||||
constexpr float kMaxScale = 1.;
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ int Executor::Run(const std::vector<Tensor *> &in_tensors, const std::vector<Ten
|
|||
}
|
||||
|
||||
// reset the max spin count.
|
||||
status = thread_pool->SetMaxSpinCount(0);
|
||||
status = thread_pool->SetMaxSpinCount(kMinSpinCount);
|
||||
if (status != RET_OK) {
|
||||
MS_LOG(ERROR) << "Set max spin count failed.";
|
||||
return status;
|
||||
|
|
|
@ -193,7 +193,7 @@ int MindrtExecutor::Run(const std::vector<Tensor *> &in_tensors, const std::vect
|
|||
TransferGraphOutput();
|
||||
|
||||
// reset the max spin count.
|
||||
ret = thread_pool->SetMaxSpinCount(0);
|
||||
ret = thread_pool->SetMaxSpinCount(kMinSpinCount);
|
||||
if (ret != RET_OK) {
|
||||
MS_LOG(ERROR) << "Set max spin count failed.";
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue