Skip to content

Commit 87bd799

Browse files
authored
[RUNTIME] Move module export to the function level. (#4405)
1 parent e081051 commit 87bd799

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/tvm/runtime/module.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ class Module : public ObjectRef {
111111
*
112112
* \endcode
113113
*/
114-
class TVM_DLL ModuleNode : public Object {
114+
class ModuleNode : public Object {
115115
public:
116116
/*! \brief virtual destructor */
117-
virtual ~ModuleNode() {}
117+
TVM_DLL virtual ~ModuleNode() {}
118118
/*!
119119
* \return The per module type key.
120120
* \note This key is used to for serializing custom modules.
121121
*/
122-
virtual const char* type_key() const = 0;
122+
TVM_DLL virtual const char* type_key() const = 0;
123123
/*!
124124
* \brief Get a PackedFunc from module.
125125
*
@@ -137,7 +137,7 @@ class TVM_DLL ModuleNode : public Object {
137137
* If the function need resource from the module(e.g. late linking),
138138
* it should capture sptr_to_self.
139139
*/
140-
virtual PackedFunc GetFunction(
140+
TVM_DLL virtual PackedFunc GetFunction(
141141
const std::string& name,
142142
const ObjectPtr<Object>& sptr_to_self) = 0;
143143
/*!

0 commit comments

Comments
 (0)