Home
last modified time | relevance | path

Searched refs:prev_idx (Results 1 – 25 of 46) sorted by relevance

12

/aosp_15_r20/external/tensorflow/tensorflow/lite/kernels/
H A Dskip_gram.cc100 int prev_idx = 0; in Eval() local
103 if (i > prev_idx && !isspace(*(strref.str + prev_idx))) { in Eval()
104 words.push_back({strref.str + prev_idx, i - prev_idx}); in Eval()
106 prev_idx = i + 1; in Eval()
109 if (strref.len > prev_idx) { in Eval()
110 words.push_back({strref.str + prev_idx, strref.len - prev_idx}); in Eval()
/aosp_15_r20/external/pytorch/test/dynamo/
H A Dtest_deviceguard.py29 self.assertEqual(device_guard.prev_idx, 0)
33 self.assertEqual(device_guard.prev_idx, 0)
41 self.assertEqual(device_guard.prev_idx, -1)
45 self.assertEqual(device_guard.prev_idx, -1)
67 self.assertEqual(device_guard.prev_idx, 0)
71 self.assertEqual(device_guard.prev_idx, 0)
81 self.assertEqual(device_guard.prev_idx, -1)
84 self.assertEqual(device_guard.prev_idx, -1)
/aosp_15_r20/external/mesa3d/src/amd/vpelib/src/chip/vpe10/
H A Dvpe10_background.c33 uint16_t prev_idx = *num_gaps - 1; in vpe10_split_bg_gap() local
39 gap_x = gaps[prev_idx].x; in vpe10_split_bg_gap()
40 gap_y = gaps[prev_idx].y; in vpe10_split_bg_gap()
41 gap_width = gaps[prev_idx].width; in vpe10_split_bg_gap()
42 gap_height = gaps[prev_idx].height; in vpe10_split_bg_gap()
54 for (gap_idx = prev_idx; gap_idx < num_gaps_t + gap_cnt; gap_idx++) { in vpe10_split_bg_gap()
/aosp_15_r20/external/webp/src/utils/
H A Dpalette.c251 uint32_t prev_idx = 0u; in CoOccurrenceBuild() local
265 prev_idx = idx_map[SearchColorNoIdx(palette_sorted, pix, num_colors)]; in CoOccurrenceBuild()
268 line_current[x] = prev_idx; in CoOccurrenceBuild()
271 if (x > 0 && prev_idx != line_current[x - 1]) { in CoOccurrenceBuild()
273 ++cooccurrence[prev_idx * num_colors + left_idx]; in CoOccurrenceBuild()
274 ++cooccurrence[left_idx * num_colors + prev_idx]; in CoOccurrenceBuild()
276 if (y > 0 && prev_idx != line_top[x]) { in CoOccurrenceBuild()
278 ++cooccurrence[prev_idx * num_colors + top_idx]; in CoOccurrenceBuild()
279 ++cooccurrence[top_idx * num_colors + prev_idx]; in CoOccurrenceBuild()
/aosp_15_r20/external/pytorch/torch/xpu/
H A D__init__.py147 self.prev_idx = -1
150 self.prev_idx = torch.xpu._exchange_device(self.idx)
153 self.idx = torch.xpu._maybe_exchange_device(self.prev_idx)
167 self.prev_idx = -1
170 self.prev_idx = torch.xpu._exchange_device(self.idx)
173 self.idx = torch.xpu._maybe_exchange_device(self.prev_idx)
/aosp_15_r20/external/perfetto/src/trace_processor/sqlite/
H A Dsql_source.cc165 uint32_t prev_idx = 0; in ApplyRewrites() local
167 PERFETTO_CHECK(prev_idx <= rewrite.original_sql_start); in ApplyRewrites()
169 original_sql.substr(prev_idx, rewrite.original_sql_start - prev_idx)); in ApplyRewrites()
171 prev_idx = rewrite.original_sql_end; in ApplyRewrites()
173 sql.append(original_sql.substr(prev_idx, original_sql.size() - prev_idx)); in ApplyRewrites()
/aosp_15_r20/external/libxaac/decoder/
H A Dixheaacd_mps_reshape_bb_env.c132 WORD32 prev_idx = 10; in ixheaacd_extract_bb_env() local
156 prev_idx = 14; in ixheaacd_extract_bb_env()
159 if (prev_idx != idx) { in ixheaacd_extract_bb_env()
161 prev_idx = idx; in ixheaacd_extract_bb_env()
264 WORD32 prev_idx; in ixheaacd_extract_bb_env() local
281 prev_idx = 14; in ixheaacd_extract_bb_env()
284 if (prev_idx != idx) { in ixheaacd_extract_bb_env()
286 prev_idx = idx; in ixheaacd_extract_bb_env()
/aosp_15_r20/external/pytorch/torch/csrc/jit/runtime/
H A Dregister_cuda_ops.cpp99 auto prev_idx = c10::cuda::current_device(); in __anon4995d1b40702() local
101 push(stack, static_cast<int>(prev_idx)); in __anon4995d1b40702()
114 int prev_idx = c10::cuda::MaybeExchangeDevice(static_cast<int>(idx)); in __anon4995d1b40802() local
115 push(stack, prev_idx); in __anon4995d1b40802()
/aosp_15_r20/external/mesa3d/src/freedreno/afuc/
H A Demu-ds.c66 unsigned prev_idx = ds->prev_draw_state_sel; in emu_set_draw_state_reg() local
67 ds->state[prev_idx].sds_base = emu_get_reg64(emu, &SDS_BASE); in emu_set_draw_state_reg()
68 ds->state[prev_idx].sds_dwords = emu_get_reg32(emu, &SDS_DWORDS); in emu_set_draw_state_reg()
/aosp_15_r20/external/rust/android-crates-io/crates/h2/src/hpack/
Dtable.rs367 fn update_size(&mut self, len: usize, prev_idx: Option<usize>) -> bool { in update_size()
369 self.converge(prev_idx) in update_size()
372 fn converge(&mut self, prev_idx: Option<usize>) -> bool { in converge()
377 self.evict(prev_idx); in converge()
383 fn evict(&mut self, prev_idx: Option<usize>) { in evict()
415 } else if Some(pos.index) == prev_idx { in evict()
/aosp_15_r20/external/perfetto/src/trace_processor/util/
H A Ddescriptors.cc204 auto prev_idx = FindDescriptorIdx(full_name); in AddEnumProtoDescriptors() local
205 if (prev_idx.has_value() && !merge_existing_messages) { in AddEnumProtoDescriptors()
206 const auto& existing_descriptor = descriptors_[*prev_idx]; in AddEnumProtoDescriptors()
211 if (!prev_idx.has_value()) { in AddEnumProtoDescriptors()
215 prev_idx = AddProtoDescriptor(std::move(proto_descriptor)); in AddEnumProtoDescriptors()
217 ProtoDescriptor& proto_descriptor = descriptors_[*prev_idx]; in AddEnumProtoDescriptors()
/aosp_15_r20/external/tensorflow/tensorflow/lite/kernels/internal/utils/
H A Dsparsity_format_converter.cc300 int level, int prev_idx, int* src_data_ptr, in Populate() argument
331 Populate(src_data, indices, level + 1, prev_idx * shape_of_level + i, in Populate()
334 } else if (prev_idx + 1 < dim_metadata_[metadata_idx].size()) { in Populate()
337 for (int i = array_segments[prev_idx]; i < array_segments[prev_idx + 1]; in Populate()
H A Dsparsity_format_converter.h111 int prev_idx, int* src_data_ptr, T* dest_data);
/aosp_15_r20/external/pytorch/torch/mtia/
H A D__init__.py205 self.prev_idx = -1
208 self.prev_idx = torch._C._accelerator_hooks_maybe_exchange_device(self.idx)
211 self.idx = torch._C._accelerator_hooks_maybe_exchange_device(self.prev_idx)
/aosp_15_r20/external/tensorflow/tensorflow/core/kernels/
H A Dsparse_utils.cc251 const Tindices prev_idx = indices_mat(i - 1, dim); in ValidateSparseTensorIndicesOrdered() local
262 if (TF_PREDICT_FALSE(idx < prev_idx || idx >= shape_vec(dim))) { in ValidateSparseTensorIndicesOrdered()
272 } else if (TF_PREDICT_TRUE(idx > prev_idx)) { in ValidateSparseTensorIndicesOrdered()
H A Dsparse_to_dense_op_gpu.cu.cc81 Index prev_idx = indices[(thread_idx - 1) * ndims + di]; in CheckIndicesValid() local
82 Index diff = curr_idx - prev_idx; in CheckIndicesValid()
/aosp_15_r20/external/pytorch/torch/_dynamo/
H A Ddevice_interface.py142 self.prev_idx = -1
146 self.prev_idx = self.device_interface.exchange_device(self.idx)
150 self.idx = self.device_interface.maybe_exchange_device(self.prev_idx)
/aosp_15_r20/external/pytorch/torch/cuda/
H A D__init__.py421 self.prev_idx = -1
424 self.prev_idx = torch.cuda._exchange_device(self.idx)
427 self.idx = torch.cuda._maybe_exchange_device(self.prev_idx)
441 self.prev_idx = -1
444 self.prev_idx = torch.cuda._exchange_device(self.idx)
447 self.idx = torch.cuda._maybe_exchange_device(self.prev_idx)
/aosp_15_r20/external/libvpx/vp8/decoder/
H A Donyxd_if.c283 const int prev_idx = cm->lst_fb_idx; in check_fragments_for_errors() local
284 cm->fb_idx_ref_cnt[prev_idx]--; in check_fragments_for_errors()
286 vp8_yv12_copy_frame(&cm->yv12_fb[prev_idx], &cm->yv12_fb[cm->lst_fb_idx]); in check_fragments_for_errors()
/aosp_15_r20/external/openthread/tests/scripts/thread-cert/pktverify/
H A Dpacket_filter.py275 prev_idx = idx
279 prev_idx = idx
281 prev_idx = idx
283 return prev_idx
/aosp_15_r20/external/webrtc/modules/audio_processing/aec3/
H A Dsignal_dependent_erle_estimator_unittest.cc125 size_t prev_idx = spectrum_render_buffer.OffsetIndex(idx, 1); in UpdateCurrentPowerSpectra() local
127 auto& X2_prev = spectrum_render_buffer.buffer[prev_idx][/*channel=*/0]; in UpdateCurrentPowerSpectra()
/aosp_15_r20/external/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_debug.c354 for (unsigned prev_idx = 0; prev_idx < cs->num_prev; ++prev_idx) { in si_parse_current_ib() local
355 struct radeon_cmdbuf_chunk *chunk = &cs->prev[prev_idx]; in si_parse_current_ib()
/aosp_15_r20/art/runtime/verifier/
H A Dmethod_verifier.cc2731 uint32_t prev_idx = work_insn_idx_ - 1; in CodeFlowVerifyInstruction() local
2732 while (0 != prev_idx && !GetInstructionFlags(prev_idx).IsOpcode()) { in CodeFlowVerifyInstruction()
2733 prev_idx--; in CodeFlowVerifyInstruction()
2735 const Instruction& prev_inst = code_item_accessor_.InstructionAt(prev_idx); in CodeFlowVerifyInstruction()
2755 if (prev_idx == 0 || GetInstructionFlags(prev_idx).IsBranchTarget()) { in CodeFlowVerifyInstruction()
2758 prev_idx--; in CodeFlowVerifyInstruction()
2759 while (0 != prev_idx && !GetInstructionFlags(prev_idx).IsOpcode()) { in CodeFlowVerifyInstruction()
2760 prev_idx--; in CodeFlowVerifyInstruction()
2762 const Instruction& prev2_inst = code_item_accessor_.InstructionAt(prev_idx); in CodeFlowVerifyInstruction()
/aosp_15_r20/external/pytorch/torch/_dynamo/variables/
H A Dctx_manager.py596 prev_idx = torch.cuda._exchange_device(*self.target_values)
597 self.set_cleanup_hook(tx, lambda: torch.cuda._maybe_exchange_device(prev_idx))
/aosp_15_r20/external/webp/src/enc/
H A Dvp8l_enc.c1293 uint32_t prev_idx = 0; \
1298 prev_idx = COLOR_INDEX; \
1301 tmp_row[x] = prev_idx; \

12