Home
last modified time | relevance | path

Searched refs:slice_idx (Results 1 – 17 of 17) 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/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.c3292 void ihevcd_copy_slice_hdr(codec_t *ps_codec, WORD32 slice_idx, WORD32 slice_idx_ref) in ihevcd_copy_slice_hdr() argument
3297 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.py78 for slice_idx in range(num_slices):
79 min_range.append(-1.0 * (slice_idx + 1))
80 max_range.append(0.8 * (slice_idx + 1))
Ddequantize_op_test.py120 for slice_idx in range(num_slices):
121 min_range.append(-2.0 * (slice_idx + 1))
122 max_range.append(1.6 * (slice_idx + 1))
/external/perfetto/src/protozero/filtering/
Dmessage_filter.cc131 for (size_t slice_idx = 0; slice_idx < num_slices; ++slice_idx) { in FilterMessageFragments() local
132 const InputSlice& slice = slices[slice_idx]; in FilterMessageFragments()
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dtcp_posix.cc118 out_offset_.slice_idx = unwind_slice_idx; in UnwindIfThrottled()
127 bool AllSlicesSent() { return out_offset_.slice_idx == buf_.count; } in AllSlicesSent()
132 out_offset_.slice_idx = 0; in PrepareForSends()
155 size_t slice_idx = 0; member
1293 *unwind_slice_idx = out_offset_.slice_idx; in PopulateIovs()
1296 out_offset_.slice_idx != buf_.count && iov_size != MAX_WRITE_IOVEC; in PopulateIovs()
1299 GRPC_SLICE_START_PTR(buf_.slices[out_offset_.slice_idx]) + in PopulateIovs()
1302 GRPC_SLICE_LENGTH(buf_.slices[out_offset_.slice_idx]) - in PopulateIovs()
1305 ++(out_offset_.slice_idx); in PopulateIovs()
1317 out_offset_.slice_idx--; in UpdateOffsetForBytesSent()
[all …]
/external/perfetto/src/trace_processor/importers/ftrace/
Dsched_event_tracker.h109 void ClosePendingSlice(uint32_t slice_idx, int64_t ts, StringId prev_state);
/external/libavc/encoder/
Dih264e_utils.c1943 WORD32 i4_mb_y = 0, slice_idx = 0, cnt; in ih264e_pic_init() local
1957 memset(pu1_slice_idx, slice_idx, cnt); in ih264e_pic_init()
1958 slice_idx++; in ih264e_pic_init()
/external/sg3_utils/testing/
Dsg_mrq_dd.cpp1583 read_write_thread(struct global_collection * clp, int thr_idx, int slice_idx, in read_write_thread() argument
1595 struct cp_ver_pair_t & cvp = clp->cp_ver_arr[slice_idx]; in read_write_thread()
1598 const string & inf = clp->inf_v[slice_idx]; in read_write_thread()
1599 const string & outf = clp->outf_v[slice_idx]; in read_write_thread()
1625 slice_idx); in read_write_thread()
1649 slice_idx); in read_write_thread()
1658 slice_idx); in read_write_thread()
/external/perfetto/src/trace_processor/
Dexport_json.cc1069 uint32_t slice_idx = opt_slice_idx.value(); in CreateFlowEventV1() local
1071 TrackId track_id = storage_->slice_table().track_id()[slice_idx]; in CreateFlowEventV1()
1086 event["ts"] = Json::Int64(slices.ts()[slice_idx] / 1000); in CreateFlowEventV1()
/external/libavc/encoder/svc/
Disvce_utils.c2346 WORD32 i4_mb_y = 0, slice_idx = 0, cnt; in isvce_svc_layer_pic_init() local
2361 memset(pu1_slice_idx, slice_idx, cnt * sizeof(pu1_slice_idx[0])); in isvce_svc_layer_pic_init()
2363 slice_idx++; in isvce_svc_layer_pic_init()