areusch commented on a change in pull request #6917:
URL: https://github.com/apache/incubator-tvm/pull/6917#discussion_r528399831
##########
File path: include/tvm/tir/function.h
##########
@@ -150,6 +151,31 @@ class PrimFunc : public BaseFunc {
TVM_DEFINE_OBJECT_REF_COW_METHOD(PrimFuncNode);
};
+class LinkedParamNode : public Object {
+ public:
+ /*! \brief Unique numeric identifier used by runtimes to lookup this
parameter. */
+ int64_t id;
+
+ /*! \brief Parameter data which should get linked into the final module. */
+ ::tvm::runtime::NDArray param;
+
+ void VisitAttrs(tvm::AttrVisitor* v) {
+ v->Visit("id", &id);
+ v->Visit("param", ¶m);
+ }
+
+ static constexpr const char* _type_key = "tir.LinkedParam";
+ TVM_DECLARE_FINAL_OBJECT_INFO(LinkedParamNode, Object);
+};
+
+class LinkedParam : public ObjectRef {
Review comment:
done
----------------------------------------------------------------
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:
[email protected]