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 4ed5218 commit c03530eCopy full SHA for c03530e
backends/vulkan/runtime/VulkanBackend.cpp
@@ -338,12 +338,10 @@ class GraphBuilder {
338
std::string op_name = op_call->name()->str();
339
ET_CHECK_MSG(VK_HAS_OP(op_name), "Missing operator: %s", op_name.c_str());
340
341
- const std::vector<int> arg_fb_ids(
342
- op_call->args()->cbegin(), op_call->args()->cend());
343
-
344
std::vector<ValueRef> args;
345
- for (const int arg_fb_id : arg_fb_ids) {
346
- args.push_back(get_fb_id_valueref(arg_fb_id));
+ args.reserve(op_call->args()->size());
+ for (const auto arg_fb_id : *op_call->args()) {
+ args.push_back(get_fb_id_valueref(static_cast<int>(arg_fb_id)));
347
}
348
349
auto vkFn = VK_GET_OP_FN(op_name);
0 commit comments