Skip to content
Snippets Groups Projects
Commit acd9db84 authored by Tianqi Chen's avatar Tianqi Chen Committed by GitHub
Browse files

[BASE] Make macro namespace angostic (#480)

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