Skip to content

Commit d5887fc

Browse files
committed
Update
[ghstack-poisoned]
1 parent ee7d388 commit d5887fc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

kernels/portable/cpu/util/advanced_index_util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ bool check_mask_indices(const Tensor& in, TensorOptList indices) {
5151
index.dim() > 0, "Zero-dimensional mask index not allowed");
5252
for (auto j = 0; j < index.dim(); j++) {
5353
if (index.size(j) != in.size(in_i + j)) {
54-
#ifdef ET_LOG_ENABLED
54+
#if ET_LOG_ENABLED
5555
auto mask_shape = executorch::runtime::tensor_shape_to_c_string(
5656
executorch::runtime::Span<const Tensor::SizesType>(
5757
index.sizes().data(), index.sizes().size()));

kernels/portable/cpu/util/broadcast_util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ ET_NODISCARD Error get_broadcast_target_size(
214214
const size_t out_sizes_len,
215215
size_t* out_dim) {
216216
if ET_UNLIKELY (!tensors_are_broadcastable_between(a_size, b_size)) {
217-
#ifdef ET_LOG_ENABLED
217+
#if ET_LOG_ENABLED
218218
executorch::runtime::Span<const Tensor::SizesType> a_size_span(
219219
a_size.data(), a_size.size());
220220
executorch::runtime::Span<const Tensor::SizesType> b_size_span(

runtime/core/portable_type/tensor_impl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Error TensorImpl::internal_resize_contiguous(ArrayRef<SizesType> new_sizes) {
9595
switch (shape_dynamism_) {
9696
case TensorShapeDynamism::STATIC:
9797
if (!std::equal(sizes_, sizes_ + dim_, new_sizes.begin())) {
98-
#ifdef ET_LOG_ENABLED
98+
#if ET_LOG_ENABLED
9999
executorch::runtime::Span<const SizesType> sizes_span(
100100
sizes().data(), sizes().size());
101101
executorch::runtime::Span<const SizesType> new_sizes_span(

0 commit comments

Comments
 (0)