Commit 187495fe authored by umangyadav's avatar umangyadav
Browse files

fix tidy

parent 7b878710
......@@ -50,7 +50,7 @@ std::vector<argument> run_target(program p,
void verify_program(const std::string& name,
const program& p,
const target& t,
compile_options options,
const compile_options& options,
precision quantize,
const parameter_map& inputs,
double tolerance)
......
......@@ -11,7 +11,7 @@ inline namespace MIGRAPHX_INLINE_NS {
void verify_program(const std::string& name,
const program& p,
const target& t,
compile_options options = compile_options{},
const compile_options& options = compile_options{},
precision quantize = precision::fp32,
const parameter_map& inputs = {},
double tolerance = 100);
......
......@@ -12,7 +12,7 @@ struct tracer
{
tracer() {}
tracer(std::string dump_directory) : dump_dir(dump_directory), counter(0) {}
tracer(std::string dump_directory) : dump_dir(std::move(dump_directory)), counter(0) {}
bool enabled() const { return !dump_dir.empty(); }
......
......@@ -101,7 +101,7 @@ void run_passes(program& prog, const std::vector<pass>& passes, tracer trace)
auto mods = prog.get_modules();
for(const auto& mod : reverse(mods))
{
if(!module_tracer_map.count(mod->name()))
if(module_tracer_map.find(mod->name()) != module_tracer_map.end())
{
module_tracer_map[mod->name()] = module_trace;
module_tracer_map[mod->name()].dump_dir += "/" + mod->name();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment