diff --git a/tests/depends/runtime/src/runtime_stub.cc b/tests/depends/runtime/src/runtime_stub.cc index 75eefdd1..696387f0 100644 --- a/tests/depends/runtime/src/runtime_stub.cc +++ b/tests/depends/runtime/src/runtime_stub.cc @@ -325,7 +325,7 @@ rtError_t rtSetTaskFailCallback(rtTaskFailCallback callback) } rtError_t rtMallocHostSharedMemory(rtMallocHostSharedMemoryIn *in, - rtMallocHostSharedMemoryOut *out) + rtMallocHostSharedMemoryOut *out) { out->ptr = new uint8_t[in->size]; out->devPtr = new uint8_t[in->size]; diff --git a/tests/ut/ge/graph/build/logical_stream_allocator_unittest.cc b/tests/ut/ge/graph/build/logical_stream_allocator_unittest.cc index 5b87939f..941389ac 100644 --- a/tests/ut/ge/graph/build/logical_stream_allocator_unittest.cc +++ b/tests/ut/ge/graph/build/logical_stream_allocator_unittest.cc @@ -194,7 +194,7 @@ class UtestLogicalStreamAllocator : public testing::Test { SchedulerConf scheduler_conf; if (confs.empty()) { for (const auto &subgraph_pair : subgraph_map) { - for (const auto &sub_graph : subgraph_pair.second) { + for (const auto &sub_graph : subgraph_pair.second) { EngineConfPtr conf = make_shared(); conf->id = sub_graph->GetEngineName(); if (conf->id == "ge_local") { @@ -202,7 +202,7 @@ class UtestLogicalStreamAllocator : public testing::Test { conf->attach = true; } scheduler_conf.cal_engines[conf->id] = conf; - } + } } } else { for (auto &conf : confs) { @@ -223,17 +223,17 @@ class UtestLogicalStreamAllocator : public testing::Test { } Status AssignLogicalStreams(vector subgraphs, - vector &confs, - std::map &max_parallel_num, - ComputeGraphPtr &whole_graph) { + vector &confs, + std::map &max_parallel_num, + ComputeGraphPtr &whole_graph) { Graph2SubGraphInfoList subgraph_map; subgraph_map[whole_graph] = subgraphs; return AssignLogicalStreams(subgraph_map, confs, max_parallel_num, whole_graph); } Status AssignLogicalStreams(vector subgraphs, - vector& confs, - std::map &max_parallel_num) { + vector& confs, + std::map &max_parallel_num) { ComputeGraphPtr whole_graph = make_shared("whole_graph"); return AssignLogicalStreams(subgraphs, confs, max_parallel_num, whole_graph); } diff --git a/tests/ut/ge/graph/load/new_op_test_utils.h b/tests/ut/ge/graph/load/new_op_test_utils.h index 4cbc78ac..99079d99 100644 --- a/tests/ut/ge/graph/load/new_op_test_utils.h +++ b/tests/ut/ge/graph/load/new_op_test_utils.h @@ -154,13 +154,13 @@ class OmeTestOpUtils { if (model->HasAttr(MODEL_ATTR_TASKS)) { ge::Buffer task_buffer; GE_CHK_BOOL_RET_STATUS(ge::AttrUtils::GetZeroCopyBytes(model, MODEL_ATTR_TASKS, task_buffer), FAILED, - "Get bytes failed."); + "Get bytes failed."); std::shared_ptr task = ge::MakeShared(); GE_CHECK_NOTNULL(task); GE_IF_BOOL_EXEC(task_buffer.GetData() == nullptr, GELOGE(FAILED, "Get data fail"); return FAILED); GE_IF_BOOL_EXEC(task_buffer.GetSize() == 0, GELOGE(FAILED, "Get size fail"); return FAILED); GE_CHK_BOOL_EXEC(ReadProtoFromArray(task_buffer.GetData(), static_cast(task_buffer.GetSize()), task.get()), - return INTERNAL_ERROR, "ReadProtoFromArray failed."); + return INTERNAL_ERROR, "ReadProtoFromArray failed."); ge_model->SetModelTaskDef(task); } @@ -168,11 +168,11 @@ class OmeTestOpUtils { if (compute_graph != nullptr && compute_graph->GetDirectNodesSize() != 0) { for (const ge::NodePtr &n : compute_graph->GetDirectNode()) { auto node_op_desc = n->GetOpDesc(); - GE_IF_BOOL_EXEC(node_op_desc == nullptr, continue); - TBEKernelPtr tbe_kernel = node_op_desc->TryGetExtAttr(ge::OP_EXTATTR_NAME_TBE_KERNEL, TBEKernelPtr()); - GE_IF_BOOL_EXEC(tbe_kernel == nullptr, continue); - kernel_store.AddTBEKernel(tbe_kernel); - GELOGI("Add tbe kernel bin %s", tbe_kernel->GetName().c_str()); + GE_IF_BOOL_EXEC(node_op_desc == nullptr, continue); + TBEKernelPtr tbe_kernel = node_op_desc->TryGetExtAttr(ge::OP_EXTATTR_NAME_TBE_KERNEL, TBEKernelPtr()); + GE_IF_BOOL_EXEC(tbe_kernel == nullptr, continue); + kernel_store.AddTBEKernel(tbe_kernel); + GELOGI("Add tbe kernel bin %s", tbe_kernel->GetName().c_str()); } } if (!kernel_store.Build()) {