Skip to content

Commit 77263bb

Browse files
committed
Things still work, undoing uneeded source code changes
1 parent 9bec007 commit 77263bb

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

kernels/portable/cpu/op_repeat_interleave.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bool check_repeat_interleave_args(
5050
for (const auto i : c10::irange(repeats.numel())) {
5151
ET_CHECK_OR_RETURN_FALSE(
5252
repeats_data[i] >= 0,
53-
"repeats cannot be negative; repeats_data[%" PRId64 "] = %ld",
53+
"repeats cannot be negative; repeats_data[%" PRId64 "] = %d",
5454
static_cast<int64_t>(i),
5555
repeats_data[i]);
5656
}

kernels/portable/cpu/util/math_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ template <
183183
typename std::enable_if<std::is_floating_point<CTYPE>::value, int>::type =
184184
0>
185185
CTYPE remainder_override(CTYPE a, CTYPE b) {
186-
CTYPE rem = std::fmod(a, b);
186+
float rem = std::fmod(a, b);
187187
if (((a < 0) ^ (b < 0)) && rem != 0) {
188188
rem += b;
189189
}

runtime/executor/pte_data_map.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PteDataMap::get_data(executorch::aten::string_view key) const {
3232
ET_CHECK_OR_RETURN_ERROR(
3333
named_data_->Get(i) != nullptr && named_data_->Get(i)->key() != nullptr,
3434
InvalidArgument,
35-
"Searching for key %.*s: NamedData at index %lu is null",
35+
"Searching for key %.*s: NamedData at index %d is null",
3636
static_cast<int>(key.size()),
3737
key.data(),
3838
i);
@@ -47,7 +47,7 @@ PteDataMap::get_data(executorch::aten::string_view key) const {
4747
ET_CHECK_OR_RETURN_ERROR(
4848
segment_index < segments_->size(),
4949
InvalidArgument,
50-
"Segment index %zu for key %.*s is out of range for segments size %lu",
50+
"Segment index %zu for key %.*s is out of range for segments size %u",
5151
segment_index,
5252
static_cast<int>(key.size()),
5353
key.data(),
@@ -74,15 +74,15 @@ ET_NODISCARD executorch::runtime::Result<const char*> PteDataMap::get_key(
7474
ET_CHECK_OR_RETURN_ERROR(
7575
index < named_data_->size(),
7676
InvalidArgument,
77-
"Index out of range: named_data size is %lu, received index %lu",
77+
"Index out of range: named_data size is %u, received index %u",
7878
named_data_->size(),
7979
index);
8080

8181
ET_CHECK_OR_RETURN_ERROR(
8282
named_data_->Get(index) != nullptr &&
8383
named_data_->Get(index)->key() != nullptr,
8484
InvalidArgument,
85-
"NamedData at index %lu is null",
85+
"NamedData at index %u is null",
8686
index);
8787
return named_data_->Get(index)->key()->c_str();
8888
}

runtime/executor/tensor_parser_exec_aten.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ ET_NODISCARD Error validateTensorLayout(
133133
ET_CHECK_OR_RETURN_ERROR(
134134
s_tensor->sizes()->Get(i) == expected_layout.sizes()[i],
135135
InvalidExternalData,
136-
"Sizes mismatch. Expected %ld, got %ld for size at index %d.",
136+
"Sizes mismatch. Expected %d, got %d for size at index %d.",
137137
s_tensor->sizes()->Get(i),
138138
expected_layout.sizes()[i],
139139
i);

runtime/kernel/operator_registry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
for (const auto& meta : meta_list) { \
3535
ET_LOG(Info, "dtype: %d | dim order: [", int(meta.dtype_)); \
3636
for (size_t i = 0; i < meta.dim_order_.size(); i++) { \
37-
ET_LOG(Info, "%ld,", static_cast<int32_t>(meta.dim_order_[i])); \
37+
ET_LOG(Info, "%d,", static_cast<int32_t>(meta.dim_order_[i])); \
3838
} \
3939
ET_LOG(Info, "]"); \
4040
}

0 commit comments

Comments
 (0)