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(
6464 constexpr auto kNumInputs = sizeof ...(inputs);
6565 ET_DCHECK (((inputs.first ->element_size () == sizeof (CTYPE_COMMON)) && ...));
6666
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-
7267 ::executorch::extension::parallel_for (
7368 0 ,
7469 out.numel(),
7570 ::executorch::extension::internal::GRAIN_SIZE,
7671 [&](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+
7777 const auto range =
7878 BroadcastIndexesRange<kNumInputs >(out, (*inputs.first )...);
7979 auto begin_it = range.begin ();
You can’t perform that action at this time.
0 commit comments