Skip to content

Commit

Permalink
Don't use StringRef::equals
Browse files Browse the repository at this point in the history
It's removed upstream
  • Loading branch information
mgehre-amd committed Sep 18, 2024
1 parent 6578b9e commit fb7d9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Transform/XTenMinimizeLiveTensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ bool isGlobalAvgPool(Operation *op) {
return false;

auto kernelName = cast<StringAttr>(op->getAttr(attr));
return kernelName.strref().equals("GlobalAvgPool2D");
return kernelName.strref() == "GlobalAvgPool2D";
}

bool hasAllGAPInputs(Operation *op) {
Expand Down

0 comments on commit fb7d9d6

Please sign in to comment.