Skip to content

Commit

Permalink
Update src/cunumeric/unary/scalar_unary_red_template.inl
Browse files Browse the repository at this point in the history
Co-authored-by: Manolis Papadakis <[email protected]>
  • Loading branch information
ipdemes and manopapad authored Nov 17, 2023
1 parent 6896b4e commit 4014239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cunumeric/unary/scalar_unary_red_template.inl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static void scalar_unary_red_template(TaskContext& context)
bool has_where = scalars[2].value<bool>();
size_t start_idx = has_where ? 2 : 1;
std::vector<Store> extra_args;
extra_args.reserve(inputs.size());
extra_args.reserve(inputs.size() - start_idx);
for (size_t idx = start_idx; idx < inputs.size(); ++idx)
extra_args.emplace_back(std::move(inputs[idx]));
// If the RHS was a scalar, use (1,) as the shape
Expand Down

0 comments on commit 4014239

Please sign in to comment.