Skip to content

Commit 11fe3b9

Browse files
Dont require method loading for meta meta in module api
Differential Revision: D76278890 Pull Request resolved: #11496
1 parent ec6798d commit 11fe3b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

extension/module/module.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ runtime::Error Module::load_method(
229229

230230
runtime::Result<MethodMeta> Module::method_meta(
231231
const std::string& method_name) {
232-
ET_CHECK_OK_OR_RETURN_ERROR(load_method(method_name));
233-
return methods_.at(method_name).method->method_meta();
232+
ET_CHECK_OK_OR_RETURN_ERROR(load());
233+
return program_->method_meta(method_name.c_str());
234234
}
235235

236236
runtime::Result<std::vector<runtime::EValue>> Module::execute(

extension/module/module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class Module {
221221

222222
/**
223223
* Get a method metadata struct by method name.
224-
* Loads the program and method if needed.
224+
* Loads the program if needed.
225225
*
226226
* @param[in] method_name The name of the method to get the metadata for.
227227
*

0 commit comments

Comments
 (0)