We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49156d0 commit d2e54b6Copy full SHA for d2e54b6
extension/module/module.cpp
@@ -185,9 +185,8 @@ Result<std::vector<EValue>> Module::execute(
185
ET_CHECK_OK_OR_RETURN_ERROR(load_method(method_name));
186
auto& method = methods_.at(method_name).method;
187
188
- for (auto index = 0; index < input.size(); ++index) {
189
- ET_CHECK_OK_OR_RETURN_ERROR(method->set_input(input[index], index));
190
- }
+ ET_CHECK_OK_OR_RETURN_ERROR(method->set_inputs(
+ exec_aten::ArrayRef<EValue>(input.data(), input.size())));
191
ET_CHECK_OK_OR_RETURN_ERROR(method->execute());
192
193
const auto outputs_size = method->outputs_size();
0 commit comments