From e35ecae8a5e1754a8647adcfada17870c1e581c4 Mon Sep 17 00:00:00 2001 From: Junru Shao Date: Tue, 26 Nov 2019 14:33:44 -0800 Subject: [PATCH] Allow Array/Map store objects that are not NodeRef (#4430) --- include/tvm/node/container.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/tvm/node/container.h b/include/tvm/node/container.h index c36c6c1..41b47d3 100644 --- a/include/tvm/node/container.h +++ b/include/tvm/node/container.h @@ -137,7 +137,7 @@ class IterAdapter { * \tparam T The content NodeRef type. */ template::value>::type > + typename = typename std::enable_if::value>::type > class Array : public NodeRef { public: /*! @@ -330,9 +330,9 @@ class Array : public NodeRef { template::value || + std::is_base_of::value || std::is_base_of::value >::type, - typename = typename std::enable_if::value>::type> + typename = typename std::enable_if::value>::type> class Map : public NodeRef { public: /*! -- 2.7.4