Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 8866516

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix addressing bug in glow/glow/torch_glow/src/GlowFuser.cpp
Reviewed By: jfix71 Differential Revision: D54382305 fbshipit-source-id: 67bed3c1c7feda8612567f0d2c562969332d6c86
1 parent 4ff3811 commit 8866516

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torch_glow/src/GlowFuser.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#include <torch/csrc/jit/runtime/custom_operator.h>
3232
#include <torch/csrc/jit/tensorexpr/kernel.h>
3333

34+
#include <string_view>
35+
3436
namespace glow {
3537
namespace {
3638

@@ -358,7 +360,7 @@ void setIncludeLastOffsets(std::shared_ptr<torch::jit::Graph> graph) {
358360

359361
void processTensorExprGroups(std::shared_ptr<torch::jit::Graph> &graph) {
360362
for (auto it = graph->nodes().begin(); it != graph->nodes().end(); it++) {
361-
if (it->kind().toQualString() != "tensorexpr::Group") {
363+
if (it->kind().toQualString() != std::string_view("tensorexpr::Group")) {
362364
continue;
363365
}
364366

0 commit comments

Comments
 (0)