clean code

This commit is contained in:
liangzelang 2022-03-17 10:43:15 +08:00
parent 4829425a9c
commit 7f26cf2bda
4 changed files with 4 additions and 4 deletions
mindspore/ccsrc
backend/common/somas
plugin/device/ascend/hal/device/ge_runtime/task

View File

@ -149,7 +149,7 @@ Status SomasSolverPre::Solving(const session::KernelGraph *graph, TensorsDescMap
if (upperbound <= best) {
best = upperbound;
best_sol = sol;
best_timing = solver->timing_;
best_timing = LongToSize(solver->timing_);
}
}
auto end = std::chrono::system_clock::now();

View File

@ -31,7 +31,7 @@ class AicpuTask : public TaskRepeater<AicpuTaskInfo> {
void Distribute() override;
void *Args() override { return input_output_addr_; }
void *Args() const override { return input_output_addr_; }
std::string task_name() const override { return task_info_->op_name(); }

View File

@ -33,7 +33,7 @@ class Task {
virtual void Distribute() = 0;
virtual void *Args() { return nullptr; }
virtual void *Args() const { return nullptr; }
virtual std::string task_name() const { return ""; }

View File

@ -30,7 +30,7 @@ class TbeTask : public TaskRepeater<TbeTaskInfo> {
void Distribute() override;
void *Args() override { return args_; }
void *Args() const override { return args_; }
std::string task_name() const override { return task_info_->op_name(); }