forked from mindspore-Ecosystem/mindspore
clean code
This commit is contained in:
parent
4829425a9c
commit
7f26cf2bda
|
@ -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();
|
||||
|
|
|
@ -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(); }
|
||||
|
||||
|
|
|
@ -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 ""; }
|
||||
|
||||
|
|
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue