You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by an...@apache.org on 2022/08/16 20:53:14 UTC

[tvm] branch aluo/does-this-work-lol created (now d995cf873d)

This is an automated email from the ASF dual-hosted git repository.

andrewzhaoluo pushed a change to branch aluo/does-this-work-lol
in repository https://gitbox.apache.org/repos/asf/tvm.git


      at d995cf873d trace.cc

This branch includes the following new commits:

     new d995cf873d trace.cc

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[tvm] 01/01: trace.cc

Posted by an...@apache.org.
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 <an...@gmail.com>
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;
     }