forked from OSchip/llvm-project
Apply clang-tidy fixes for readability-identifier-naming in SparseTensorUtils.cpp (NFC)
This commit is contained in:
parent
90c2af57af
commit
298d2fa1c5
|
@ -126,11 +126,11 @@ public:
|
||||||
// only happens if we did not set the initial capacity right, and then only
|
// only happens if we did not set the initial capacity right, and then only
|
||||||
// for every internal vector reallocation (which with the doubling rule
|
// for every internal vector reallocation (which with the doubling rule
|
||||||
// should only incur an amortized linear overhead).
|
// should only incur an amortized linear overhead).
|
||||||
uint64_t *new_base = indices.data();
|
uint64_t *newBase = indices.data();
|
||||||
if (new_base != base) {
|
if (newBase != base) {
|
||||||
for (uint64_t i = 0, n = elements.size(); i < n; i++)
|
for (uint64_t i = 0, n = elements.size(); i < n; i++)
|
||||||
elements[i].indices = new_base + (elements[i].indices - base);
|
elements[i].indices = newBase + (elements[i].indices - base);
|
||||||
base = new_base;
|
base = newBase;
|
||||||
}
|
}
|
||||||
// Add element as (pointer into shared index pool, value) pair.
|
// Add element as (pointer into shared index pool, value) pair.
|
||||||
elements.emplace_back(base + size, val);
|
elements.emplace_back(base + size, val);
|
||||||
|
|
Loading…
Reference in New Issue