Home
last modified time | relevance | path

Searched refs:slice_idx (Results 1 – 14 of 14) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dquantize_op_test.cc105 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in TEST_P() local
106 min_ranges[slice_idx] = (slice_idx + 1) * -255.0; in TEST_P()
107 max_ranges[slice_idx] = (slice_idx + 1) * 127.0; in TEST_P()
126 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in TEST_P() local
127 EXPECT_EQ(output_min.flat<float>()(slice_idx), 0); in TEST_P()
128 EXPECT_EQ(output_max.flat<float>()(slice_idx), 127.0 * (slice_idx + 1)); in TEST_P()
186 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in TEST_P() local
187 min_ranges[slice_idx] = (slice_idx + 1) * -128.0; in TEST_P()
188 max_ranges[slice_idx] = (slice_idx + 1) * 100.0; in TEST_P()
206 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in TEST_P() local
[all …]
Dquantize_and_dequantize_op_test.cc164 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in TEST_P() local
165 EXPECT_EQ(inputs_[1]->flat<float>()(slice_idx), 0.0); in TEST_P()
166 EXPECT_EQ(inputs_[2]->flat<float>()(slice_idx), 0.0); in TEST_P()
216 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in TEST_P() local
217 EXPECT_EQ(inputs_[1]->flat<float>()(slice_idx), 0.0); in TEST_P()
218 EXPECT_EQ(inputs_[2]->flat<float>()(slice_idx), 0.0); in TEST_P()
270 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in TEST_P() local
271 EXPECT_EQ(inputs_[1]->flat<float>()(slice_idx), 0.0); in TEST_P()
272 EXPECT_EQ(inputs_[2]->flat<float>()(slice_idx), 0.0); in TEST_P()
359 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in TEST_P() local
[all …]
Ddequantize_op_test.cc170 for (int slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in RunDequantizeScaledTest() local
171 min_ranges[slice_idx] = (slice_idx + 1) * min_range; in RunDequantizeScaledTest()
172 max_ranges[slice_idx] = (slice_idx + 1) * max_range; in RunDequantizeScaledTest()
/external/perfetto/src/trace_processor/importers/common/
Dslice_tracker.cc140 uint32_t slice_idx = stack[*stack_idx].first; in AddArgs() local
141 PERFETTO_DCHECK(slices->dur()[slice_idx] == kPendingDuration); in AddArgs()
144 auto bound_inserter = tracker->AddArgsTo(slices->id()[slice_idx]); in AddArgs()
146 return slice_idx; in AddArgs()
194 uint32_t slice_idx = *slices->id().IndexOf(id); in StartSlice() local
195 stack->emplace_back(std::make_pair(slice_idx, ArgsTracker(context_))); in StartSlice()
199 slices->mutable_depth()->Set(slice_idx, depth); in StartSlice()
200 slices->mutable_parent_stack_id()->Set(slice_idx, parent_stack_id); in StartSlice()
201 slices->mutable_stack_id()->Set(slice_idx, GetStackHash(*stack)); in StartSlice()
203 slices->mutable_parent_id()->Set(slice_idx, *parent_id); in StartSlice()
[all …]
/external/libhevc/decoder/
Dihevcd_boundary_strength.c359 WORD32 slice_idx, left_slice_idx = -1, top_slice_idx = -1; in ihevcd_ctb_boundary_strength_islice() local
380 slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr]; in ihevcd_ctb_boundary_strength_islice()
387 … if(!((ps_bs_ctxt->ps_slice_hdr->i1_dependent_slice_flag == 1) && (slice_idx == left_slice_idx))) in ihevcd_ctb_boundary_strength_islice()
391 … ((slice_idx != left_slice_idx) && 0 == ps_bs_ctxt->i4_ctb_slice_y) || in ihevcd_ctb_boundary_strength_islice()
392 … ((0 == ps_bs_ctxt->i4_ctb_tile_x) && (slice_idx != left_slice_idx)))) || in ihevcd_ctb_boundary_strength_islice()
402 slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr]; in ihevcd_ctb_boundary_strength_islice()
412 … || (0 == i1_loop_filter_across_slices_enabled_flag && ((slice_idx != top_slice_idx))) in ihevcd_ctb_boundary_strength_islice()
915 WORD32 slice_idx, left_slice_idx = -1, top_slice_idx = -1; in ihevcd_ctb_boundary_strength_pbslice() local
936 slice_idx = ps_bs_ctxt->pu1_slice_idx[ctb_addr]; in ihevcd_ctb_boundary_strength_pbslice()
944 … if(!((ps_bs_ctxt->ps_slice_hdr->i1_dependent_slice_flag == 1) && (slice_idx == left_slice_idx))) in ihevcd_ctb_boundary_strength_pbslice()
[all …]
Dihevcd_mv_merge.c294 WORD32 slice_idx; in ihevcd_collocated_mvp() local
311slice_idx = *(ps_mv_buf_col->pu1_pic_slice_map + col_ctb_x + col_ctb_y * ps_sps->i2_pic_wd_in_ctb); in ihevcd_collocated_mvp()
312 slice_idx &= (MAX_SLICE_HDR_CNT - 1); in ihevcd_collocated_mvp()
316 ps_mv_buf_col->ai4_l0_collocated_poc[slice_idx][au4_ref_idx_col[0]]; in ihevcd_collocated_mvp()
318 … (ps_mv_buf_col->ai1_l0_collocated_poc_lt[slice_idx][au4_ref_idx_col[0]] == LONG_TERM_REF); in ihevcd_collocated_mvp()
323 ps_mv_buf_col->ai4_l1_collocated_poc[slice_idx][au4_ref_idx_col[0]]; in ihevcd_collocated_mvp()
325 … (ps_mv_buf_col->ai1_l1_collocated_poc_lt[slice_idx][au4_ref_idx_col[0]] == LONG_TERM_REF); in ihevcd_collocated_mvp()
361 … ps_mv_buf_col->ai4_l0_collocated_poc[slice_idx][au4_ref_idx_col[1]]; in ihevcd_collocated_mvp()
363 … (ps_mv_buf_col->ai1_l0_collocated_poc_lt[slice_idx][au4_ref_idx_col[1]] == LONG_TERM_REF); in ihevcd_collocated_mvp()
368 … ps_mv_buf_col->ai4_l1_collocated_poc[slice_idx][au4_ref_idx_col[1]]; in ihevcd_collocated_mvp()
[all …]
Dihevcd_parse_headers.h40 void ihevcd_copy_slice_hdr(codec_t *ps_codec, WORD32 slice_idx, WORD32 slice_idx_ref);
Dihevcd_utils.c863 WORD32 slice_idx; in ihevcd_parse_pic_init() local
868 for(slice_idx = slice_start_idx; slice_idx < MAX_SLICE_HDR_CNT; slice_idx++) in ihevcd_parse_pic_init()
870 slice_header_t *ps_slice_hdr_tmp = ps_codec->ps_slice_hdr_base + slice_idx; in ihevcd_parse_pic_init()
Dihevcd_parse_headers.c3286 void ihevcd_copy_slice_hdr(codec_t *ps_codec, WORD32 slice_idx, WORD32 slice_idx_ref) in ihevcd_copy_slice_hdr() argument
3291 ps_slice_hdr = ps_codec->s_parse.ps_slice_hdr_base + slice_idx; in ihevcd_copy_slice_hdr()
/external/tensorflow/tensorflow/python/ops/
Dquantized_ops_test.py82 for slice_idx in range(num_slices):
83 min_range.append(-1.0 * (slice_idx + 1))
84 max_range.append(0.8 * (slice_idx + 1))
Ddequantize_op_test.py124 for slice_idx in range(num_slices):
125 min_range.append(-2.0 * (slice_idx + 1))
126 max_range.append(1.6 * (slice_idx + 1))
/external/perfetto/src/trace_processor/importers/ftrace/
Dsched_event_tracker.h111 void ClosePendingSlice(uint32_t slice_idx, int64_t ts, int64_t prev_state);
/external/libavc/encoder/
Dih264e_utils.c1941 WORD32 i4_mb_y = 0, slice_idx = 0, cnt; in ih264e_pic_init() local
1955 memset(pu1_slice_idx, slice_idx, cnt); in ih264e_pic_init()
1956 slice_idx++; in ih264e_pic_init()
/external/python/pybind11/tests/
Dtest_eigen.py144 for slice_idx, ref_mat in enumerate(slices):
173 for slice_idx, ref_mat in enumerate(slices):