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

tqchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git


The following commit(s) were added to refs/heads/master by this push:
     new dec5030  Fix example code (#6627)
dec5030 is described below

commit dec503029235b3cf8fc91fe6defafbea3307ab17
Author: Robert Kimball <bobkimb...@gmail.com>
AuthorDate: Tue Oct 6 05:39:55 2020 -0700

    Fix example code (#6627)
---
 include/tvm/runtime/object.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/tvm/runtime/object.h b/include/tvm/runtime/object.h
index f024b4c..be613f1 100644
--- a/include/tvm/runtime/object.h
+++ b/include/tvm/runtime/object.h
@@ -133,7 +133,7 @@ struct TypeIndex {
  *    TVM_DECLARE_BASE_OBJECT_INFO(BaseObj, Object);
  *  };
  *
- *  class ObjLeaf : public ObjBase {
+ *  class LeafObj : public BaseObj {
  *   public:
  *    // fields
  *    int child_field0;
@@ -144,8 +144,8 @@ struct TypeIndex {
  *  };
  *
  *  // The following code should be put into a cc file.
- *  TVM_REGISTER_OBJECT_TYPE(ObjBase);
- *  TVM_REGISTER_OBJECT_TYPE(ObjLeaf);
+ *  TVM_REGISTER_OBJECT_TYPE(BaseObj);
+ *  TVM_REGISTER_OBJECT_TYPE(LeafObj);
  *
  *  // Usage example.
  *  void TestObjects() {

Reply via email to