Commit 1535e7b2 authored by umangyadav's avatar umangyadav
Browse files

fix tidy

parent 5ad42259
...@@ -67,7 +67,7 @@ void verify_program(const std::string& name, ...@@ -67,7 +67,7 @@ void verify_program(const std::string& name,
void verify_instructions(const program& prog, void verify_instructions(const program& prog,
const target& t, const target& t,
compile_options options, const compile_options& options,
precision quantize, precision quantize,
double tolerance) double tolerance)
{ {
...@@ -114,7 +114,7 @@ void verify_instructions(const program& prog, ...@@ -114,7 +114,7 @@ void verify_instructions(const program& prog,
void verify_reduced(program p, void verify_reduced(program p,
int n, int n,
const target& t, const target& t,
compile_options options, const compile_options& options,
precision quantize, precision quantize,
const parameter_map& inputs, const parameter_map& inputs,
double tolerance) double tolerance)
...@@ -129,7 +129,7 @@ void verify_reduced(program p, ...@@ -129,7 +129,7 @@ void verify_reduced(program p,
void verify_reduced_program(const program& p, void verify_reduced_program(const program& p,
const target& t, const target& t,
compile_options options, const compile_options& options,
precision quantize, precision quantize,
const parameter_map& inputs, const parameter_map& inputs,
double tolerance) double tolerance)
......
...@@ -17,12 +17,12 @@ void verify_program(const std::string& name, ...@@ -17,12 +17,12 @@ void verify_program(const std::string& name,
double tolerance = 100); double tolerance = 100);
void verify_instructions(const program& prog, void verify_instructions(const program& prog,
const target& t, const target& t,
compile_options options = compile_options{}, const compile_options& options = compile_options{},
precision quantize = precision::fp32, precision quantize = precision::fp32,
double tolerance = 80); double tolerance = 80);
void verify_reduced_program(const program& p, void verify_reduced_program(const program& p,
const target& t, const target& t,
compile_options options = compile_options{}, const compile_options& options = compile_options{},
precision quantize = precision::fp32, precision quantize = precision::fp32,
const parameter_map& inputs = {}, const parameter_map& inputs = {},
double tolerance = 80); double tolerance = 80);
......
...@@ -63,7 +63,7 @@ struct program ...@@ -63,7 +63,7 @@ struct program
void compile(const target& t, void compile(const target& t,
compile_options options = compile_options{}, compile_options options = compile_options{},
std::string ir_dump_path = "passes"); const std::string& ir_dump_path = "passes");
bool is_compiled() const; bool is_compiled() const;
......
...@@ -138,7 +138,7 @@ instruction_ref program::validate() const ...@@ -138,7 +138,7 @@ instruction_ref program::validate() const
bool program::is_compiled() const { return not this->impl->target_name.empty(); } bool program::is_compiled() const { return not this->impl->target_name.empty(); }
void program::compile(const target& t, compile_options options, std::string ir_dump_path) void program::compile(const target& t, compile_options options, const std::string& ir_dump_path)
{ {
assert(not this->is_compiled()); assert(not this->is_compiled());
this->impl->target_name = t.name(); this->impl->target_name = t.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