Skip to content

Commit

Permalink
Merge pull request #87 from Xilinx/matthias.remove_equals
Browse files Browse the repository at this point in the history
Don't use StringRef::equals
  • Loading branch information
mgehre-amd authored Sep 18, 2024
2 parents 6c46047 + fb7d9d6 commit f521f07
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 f521f07

Please sign in to comment.