Skip to content

Commit

Permalink
std::move
Browse files Browse the repository at this point in the history
  • Loading branch information
Linnea May committed Jan 25, 2024
1 parent 65b9611 commit 7dfa758
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ namespace OperatorHelper
}

template <typename T>
void ExpandToAxes(/*inout*/ std::vector<T>& originalValues, gsl::span<int32_t> axes, std::vector<T> expanded)
void ExpandToAxes(/*inout*/ std::vector<T>& originalValues, const gsl::span<int32_t> axes, std::vector<T> expanded)
{
assert(originalValues.size() == axes.size());
// Fill in roi and scales/sizes
for (size_t i = 0; i < axes.size(); i++)
{
expanded[axes[i]] = originalValues[i];
}
originalValues = expanded;
originalValues = std::move(expanded);
}

float CastFloat16ToFloat32(uint16_t input)
Expand Down

0 comments on commit 7dfa758

Please sign in to comment.