This is an automated email from the ASF dual-hosted git repository. andrewzhaoluo pushed a commit to branch aluo/does-this-work-lol in repository https://gitbox.apache.org/repos/asf/tvm.git
commit d995cf873dc083ad4c50b9ac90186b19234e1e4a Author: Andrew Zhao Luo <[email protected]> AuthorDate: Tue Aug 16 13:52:58 2022 -0700 trace.cc --- src/tir/schedule/trace.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tir/schedule/trace.cc b/src/tir/schedule/trace.cc index 395613bf4c..a3648a7174 100644 --- a/src/tir/schedule/trace.cc +++ b/src/tir/schedule/trace.cc @@ -153,7 +153,7 @@ Array<ObjectRef> TranslateInputRVs(const Array<ObjectRef>& inputs, const char* name = str->data; int64_t size = str->size; // Case 2. string - if (size > 2 && name[0] == '"' && name[size - 1] == '"') { + if (size >= 2 && name[0] == '"' && name[size - 1] == '"') { results.push_back(String(std::string(name + 1, size - 2))); continue; }
