@@ -76,17 +76,6 @@ class ModuleNode {
7676 virtual ~ModuleNode () {}
7777 /* ! \return The module type key */
7878 virtual const char * type_key () const = 0;
79- /* !
80- * \brief Eagerly compile the function under certain context,
81- * assuming that it is used by the current thread.
82- *
83- * This is useful for benchmarking to eliminate lazy compilation
84- * overhead during the first execution of the kernel.
85- *
86- * \param name The name of the function.
87- * \param ctx The context to be executed.
88- */
89- virtual void PreCompile (const std::string& name, TVMContext ctx) = 0;
9079 /* !
9180 * \brief Get a PackedFunc from module.
9281 *
@@ -113,22 +102,21 @@ class ModuleNode {
113102 * \param format The format of the file.
114103 */
115104 virtual void SaveToFile (const std::string& file_name,
116- const std::string& format) = 0 ;
105+ const std::string& format);
117106 /* !
118107 * \brief Save the module to binary stream.
119108 * \param stream The binary stream to save to.
120109 * \note It is recommended to implement this for device modules,
121110 * but not necessarily host modules.
122111 * We can use this to do AOT loading of bundled device functions.
123112 */
124- virtual void SaveToBinary (dmlc::Stream* stream) = 0 ;
113+ virtual void SaveToBinary (dmlc::Stream* stream);
125114 /* !
126115 * \brief Get the source code of module, when available.
127116 * \param format Format of the source code, can be empty by default.
128117 * \return Possible source code when available.
129118 */
130- virtual std::string GetSource (
131- const std::string& format = " " ) = 0;
119+ virtual std::string GetSource (const std::string& format = " " );
132120 /* !
133121 * \brief Get a function from current environment
134122 * The environment includes all the imports as well as Global functions.
0 commit comments