[mlir][vulkan-runner] Use std::make_tuple to create tuple

This commit is contained in:
Lei Zhang 2020-03-10 16:20:07 -04:00 committed by Lei Zhang
parent 2eff566b07
commit 5b0c60c58e
1 changed files with 2 additions and 2 deletions

View File

@ -128,8 +128,8 @@ struct VulkanLaunchOpOperandAdaptor {
// 2. Offset.
// 3. Size in dim 0.
// 4. Stride in dim 0.
return {operands[numConfigOps + index * loweredMemRefNumOps1D],
operands[numConfigOps + index * loweredMemRefNumOps1D + 3]};
auto offset = numConfigOps + index * loweredMemRefNumOps1D;
return std::make_tuple(operands[offset], operands[offset + 3]);
}
/// Returns the number of resources assuming all operands lowered from