You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/07/19 06:36:59 UTC

[GitHub] [incubator-tvm] hanzz2007 commented on issue #6093: [BUG] Exception may be throwed when attrs is constructed

hanzz2007 commented on issue #6093:
URL: https://github.com/apache/incubator-tvm/issues/6093#issuecomment-660596761


   for example 
   ```C++
   struct LoopPartitionConfigNode : public tvm::AttrsNode<LoopPartitionConfigNode> {
     bool partition_const_loop;
   
     TVM_DECLARE_ATTRS(LoopPartitionConfigNode, "tir.transform.LoopPartitionConfig") {
       //macro expanded:  __fvisitor__(xxx, xxx)   /*note here, __fvisitor__ return a AttrInitEntry<T> object by value, an copy constructor and destructor will be called */
       //     .describe().set_default()
       TVM_ATTR_FIELD(partition_const_loop).describe("Split constant loop").set_default(false);
     }
   };
   
   
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org