Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion onnxruntime/test/common/tensor_op_test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ inline std::vector<BFloat16> ValueRange<BFloat16>(size_t count, BFloat16 start,
return result;
}

inline std::pair<float, float> MeanStdev(gsl::span<const float> v) {
template <typename T>
inline std::pair<float, float> MeanStdev(const T& v) {
float sum = std::accumulate(v.begin(), v.end(), 0.0f);
float mean = sum / v.size();

Expand Down
Loading