diff --git a/torch_glow/src/GlowFuser.cpp b/torch_glow/src/GlowFuser.cpp index 1e42dd9f9..87791adc6 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; }