File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
kernels/portable/cpu/util Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,16 @@ inline void dtype_specialized_elementwise_fn_impl(
64
64
constexpr auto kNumInputs = sizeof ...(inputs);
65
65
ET_DCHECK (((inputs.first ->element_size () == sizeof (CTYPE_COMMON)) && ...));
66
66
67
- std::array<const CTYPE_COMMON*, kNumInputs > inputs_data_ptrs = {
68
- inputs.first ->template const_data_ptr <CTYPE_COMMON>()...};
69
-
70
- CTYPE_OUT* const data_out = out.mutable_data_ptr <CTYPE_OUT>();
71
-
72
67
::executorch::extension::parallel_for (
73
68
0 ,
74
69
out.numel(),
75
70
::executorch::extension::internal::GRAIN_SIZE,
76
71
[&](const auto begin, const auto end) {
72
+ std::array<const CTYPE_COMMON*, kNumInputs > inputs_data_ptrs = {
73
+ inputs.first ->template const_data_ptr <CTYPE_COMMON>()...};
74
+
75
+ CTYPE_OUT* const data_out = out.mutable_data_ptr <CTYPE_OUT>();
76
+
77
77
const auto range =
78
78
BroadcastIndexesRange<kNumInputs >(out, (*inputs.first )...);
79
79
auto begin_it = range.begin ();
You can’t perform that action at this time.
0 commit comments