Support clang-tidy (#1034)

This commit is contained in:
Fangjun Kuang
2024-06-19 20:51:57 +08:00
committed by GitHub
parent 656b9fa1c8
commit a11c859971
63 changed files with 381 additions and 237 deletions

View File

@@ -71,8 +71,8 @@ Ort::Value Stack(OrtAllocator *allocator,
T *dst = ans.GetTensorMutableData<T>();
for (int32_t i = 0; i != leading_size; ++i) {
for (int32_t n = 0; n != static_cast<int32_t>(values.size()); ++n) {
const T *src = values[n]->GetTensorData<T>();
for (auto value : values) {
const T *src = value->GetTensorData<T>();
src += i * trailing_size;
std::copy(src, src + trailing_size, dst);