Commit acd9db84 by Tianqi Chen Committed by GitHub

[BASE] Make macro namespace angostic (#480)

parent a7f0f818
...@@ -22,10 +22,10 @@ using ::tvm::AttrVisitor; ...@@ -22,10 +22,10 @@ using ::tvm::AttrVisitor;
/*! \brief Macro to make it easy to define node ref type given node */ /*! \brief Macro to make it easy to define node ref type given node */
#define TVM_DEFINE_NODE_REF(TypeName, NodeName) \ #define TVM_DEFINE_NODE_REF(TypeName, NodeName) \
class TypeName : public NodeRef { \ class TypeName : public ::tvm::NodeRef { \
public: \ public: \
TypeName() {} \ TypeName() {} \
explicit TypeName(std::shared_ptr<Node> n) : NodeRef(n) {} \ explicit TypeName(std::shared_ptr<::tvm::Node> n) : NodeRef(n) {} \
const NodeName* operator->() const { \ const NodeName* operator->() const { \
return static_cast<const NodeName*>(node_.get()); \ return static_cast<const NodeName*>(node_.get()); \
} \ } \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment