Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mlir] Apply is_mlir_conv predicate in standalone MLIr offloading #2249

Merged
merged 3 commits into from
Sep 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/targets/gpu/fuse_mlir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,12 +327,12 @@

struct find_mlir_standalone_convolution_op : find_mlir_standalone_op
{
auto matcher() const { return match::name("convolution"); }
auto matcher() const { return is_mlir_conv; }
};

struct find_mlir_standalone_dot_op : find_mlir_standalone_op
{
auto matcher() const { return match::name("dot"); }
auto matcher() const { return match::any_of(match::name("dot"), match::name("quant_dot")); }
};

/**
Expand Down Expand Up @@ -365,7 +365,7 @@
{
return true;
}
else if(op_name == "convolution")
else if(op_name == "convolution" || op_name == "quant_convolution")

Check warning on line 368 in src/targets/gpu/fuse_mlir.cpp

View workflow job for this annotation

GitHub Actions / cppcheck

style: Use 'or' instead of || [UseNamedLogicOperator]
{
if(ctx == nullptr)
{
Expand Down
Loading