From d03bac7620c14bcca8a35a71cedf04b0e4e098c4 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 7 Mar 2024 13:54:23 -0800 Subject: [PATCH] Fix addressing bug in glow/glow/torch_glow/src/GlowFuser.cpp Differential Revision: D54382305 --- torch_glow/src/GlowFuser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/torch_glow/src/GlowFuser.cpp b/torch_glow/src/GlowFuser.cpp index 1e42dd9f90..87791adc61 100644 --- a/torch_glow/src/GlowFuser.cpp +++ b/torch_glow/src/GlowFuser.cpp @@ -31,6 +31,8 @@ #include #include +#include + namespace glow { namespace { @@ -358,7 +360,7 @@ void setIncludeLastOffsets(std::shared_ptr graph) { void processTensorExprGroups(std::shared_ptr &graph) { for (auto it = graph->nodes().begin(); it != graph->nodes().end(); it++) { - if (it->kind().toQualString() != "tensorexpr::Group") { + if (it->kind().toQualString() != std::string_view("tensorexpr::Group")) { continue; }