Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion kernels/portable/cpu/util/advanced_index_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bool check_mask_indices(const Tensor& in, TensorOptList indices) {
index.dim() > 0, "Zero-dimensional mask index not allowed");
for (auto j = 0; j < index.dim(); j++) {
if (index.size(j) != in.size(in_i + j)) {
#ifdef ET_LOG_ENABLED
#if ET_LOG_ENABLED
auto mask_shape = executorch::runtime::tensor_shape_to_c_string(
executorch::runtime::Span<const Tensor::SizesType>(
index.sizes().data(), index.sizes().size()));
Expand Down
2 changes: 1 addition & 1 deletion kernels/portable/cpu/util/broadcast_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ ET_NODISCARD Error get_broadcast_target_size(
const size_t out_sizes_len,
size_t* out_dim) {
if ET_UNLIKELY (!tensors_are_broadcastable_between(a_size, b_size)) {
#ifdef ET_LOG_ENABLED
#if ET_LOG_ENABLED
executorch::runtime::Span<const Tensor::SizesType> a_size_span(
a_size.data(), a_size.size());
executorch::runtime::Span<const Tensor::SizesType> b_size_span(
Expand Down
2 changes: 1 addition & 1 deletion runtime/core/portable_type/tensor_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Error TensorImpl::internal_resize_contiguous(ArrayRef<SizesType> new_sizes) {
switch (shape_dynamism_) {
case TensorShapeDynamism::STATIC:
if (!std::equal(sizes_, sizes_ + dim_, new_sizes.begin())) {
#ifdef ET_LOG_ENABLED
#if ET_LOG_ENABLED
executorch::runtime::Span<const SizesType> sizes_span(
sizes().data(), sizes().size());
executorch::runtime::Span<const SizesType> new_sizes_span(
Expand Down
Loading