junrushao1994 commented on a change in pull request #5719: URL: https://github.com/apache/incubator-tvm/pull/5719#discussion_r434754470
########## File path: include/tvm/node/container.h ########## @@ -82,6 +82,21 @@ class MapNode : public Object { /*! \brief the data content */ ContainerType data; + /*! + * \brief Check if all keys in the MapNode are instance of the given Object type + * \tparam T The given Object type + * \return The result of the check + */ + template <class T> + bool KeysAreInstance() const { Review comment: yeah I just replaced it with std::all_of. Thanks! ---------------------------------------------------------------- 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: us...@infra.apache.org