"src/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "01342ae159d925018facfad2e66b18decfcded6c"
Commit 255342ca authored by Paul's avatar Paul
Browse files

Rename with find prefix

parent f1a58b24
...@@ -189,7 +189,7 @@ struct hip_add_relu ...@@ -189,7 +189,7 @@ struct hip_add_relu
} }
}; };
struct match_add_relu struct find_add_relu
{ {
auto matcher() const auto matcher() const
{ {
...@@ -211,7 +211,7 @@ struct match_add_relu ...@@ -211,7 +211,7 @@ struct match_add_relu
} }
}; };
struct match_triadd struct find_triadd
{ {
auto matcher() const auto matcher() const
{ {
...@@ -346,7 +346,7 @@ void apply_conv_bias(context& ctx, program& p, match::matcher_result r) ...@@ -346,7 +346,7 @@ void apply_conv_bias(context& ctx, program& p, match::matcher_result r)
p.replace_instruction(ins, cb, input_ins, weights_ins, old_ws_ins, bias_ins, alloc_ins); p.replace_instruction(ins, cb, input_ins, weights_ins, old_ws_ins, bias_ins, alloc_ins);
} }
struct match_conv_bias struct find_conv_bias
{ {
context* ctx = nullptr; context* ctx = nullptr;
auto matcher() const auto matcher() const
...@@ -360,7 +360,7 @@ struct match_conv_bias ...@@ -360,7 +360,7 @@ struct match_conv_bias
} }
}; };
struct match_conv_bias_relu struct find_conv_bias_relu
{ {
context* ctx = nullptr; context* ctx = nullptr;
auto matcher() const { return match::name("gpu::relu")(match::arg(0)(conv_bias())); } auto matcher() const { return match::name("gpu::relu")(match::arg(0)(conv_bias())); }
...@@ -374,11 +374,11 @@ struct match_conv_bias_relu ...@@ -374,11 +374,11 @@ struct match_conv_bias_relu
void fuse_ops::apply(program& p) const void fuse_ops::apply(program& p) const
{ {
// clang-format off // clang-format off
match::find_matches(p, match_triadd{}); match::find_matches(p, find_triadd{});
match::find_matches(p, match::find_matches(p,
match_conv_bias_relu{ctx}, find_conv_bias_relu{ctx},
match_conv_bias{ctx}, find_conv_bias{ctx},
match_add_relu{} find_add_relu{}
); );
// clang-format on // clang-format on
} }
......
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