forked from mindspore-Ecosystem/mindspore
!14529 fix codex warning in somas
From: @laiyongqiang Reviewed-by: @zhoufeng54,@jjfeing Signed-off-by: @jjfeing
This commit is contained in:
commit
22479db8b8
|
@ -225,7 +225,7 @@ bool Somas::LoadSomasResult(const session::KernelGraph *graph, const string file
|
|||
} catch (std::exception &e) {
|
||||
MS_LOG(WARNING) << "Parse json file error: " << filename << ", sleep 500ms and retry again.";
|
||||
somas_json_fs.close();
|
||||
usleep(500000);
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||
std::ifstream retry_tmp(filename);
|
||||
if (!retry_tmp.is_open()) {
|
||||
MS_LOG(INFO) << "Open json file: " << filename << " error, please check kernel_meta.";
|
||||
|
|
|
@ -56,7 +56,6 @@ class Somas {
|
|||
|
||||
static bool NodeSort(SomasNodePtr, SomasNodePtr);
|
||||
std::vector<DynamicBitSet> reuse_matrix_;
|
||||
std::vector<DynamicBitSet> tensor_relation;
|
||||
void ConvertToProfilingNode(uint32_t graph_id);
|
||||
|
||||
private:
|
||||
|
|
|
@ -90,6 +90,8 @@ class DynamicBitSet {
|
|||
Reset(0x0);
|
||||
}
|
||||
|
||||
~DynamicBitSet() = default;
|
||||
|
||||
void SetBitTrue(size_t index, bool log = false) {
|
||||
if (log) {
|
||||
MS_LOG(INFO) << GetIndex(index) << " " << GetBitMask(index);
|
||||
|
|
Loading…
Reference in New Issue