/external/tensorflow/tensorflow/python/keras/layers/preprocessing/ |
D | hashing_test.py | 41 layer = hashing.Hashing(num_bins=1) 47 layer = hashing.Hashing(num_bins=2) 55 empty_mask_layer = hashing.Hashing(num_bins=3, mask_value='') 56 omar_mask_layer = hashing.Hashing(num_bins=3, mask_value='omar') 68 layer = hashing.Hashing(num_bins=2) 80 layer = hashing.Hashing(num_bins=3) 87 layer = hashing.Hashing(num_bins=2, salt=[133, 137]) 95 layer_2 = hashing.Hashing(num_bins=2, salt=[211, 137]) 101 layer = hashing.Hashing(num_bins=3, salt=[133, 137]) 108 layer = hashing.Hashing(num_bins=2) [all …]
|
D | hashing.py | 137 def __init__(self, num_bins, mask_value=None, salt=None, name=None, **kwargs): argument 138 if num_bins is None or num_bins <= 0: 142 self.num_bins = num_bins 182 num_available_bins = self.num_bins 221 'num_bins': self.num_bins,
|
D | discretization.py | 67 num_bins = 1.0 / epsilon 70 if num_bins >= n: 72 step_size = int(n / num_bins) 134 def get_bucket_boundaries(summary, num_bins): argument 135 return compress(summary, 1.0 / num_bins)[:-1, 0] 284 def __init__(self, epsilon, num_bins,): argument 286 self.num_bins = num_bins 322 boundaries = [np.append(get_bucket_boundaries(summary, self.num_bins),
|
D | discretization_test.py | 194 expected, num_bins=5, epsilon=0.01): argument 206 layer = cls(epsilon=epsilon, bins=num_bins) 239 def test_combiner_computation(self, num_bins, data, expected): argument 242 num_bins)
|
D | hashing_distribution_test.py | 53 layer = hashing.Hashing(num_bins=2)
|
/external/tensorflow/tensorflow/core/kernels/ |
D | bincount_op_gpu.cu.cc | 42 const Tidx num_bins) { in Compute() 57 Tidx upper_level = num_bins; in Compute() 106 const Tidx num_bins) { in BincountReduceKernel() argument 109 if (bin < num_bins) { in BincountReduceKernel() 121 const Tidx num_bins) { in Compute() 128 output.data(), nthreads, num_bins); in Compute() 136 const Tidx num_bins) { in BincountColReduceKernel() argument 140 if (bin < num_bins) { in BincountColReduceKernel() 142 int offset = row * num_bins + bin; in BincountColReduceKernel() 158 const Tidx num_bins) { in BincountColReduceSharedKernel() argument [all …]
|
D | bincount_op.h | 35 const Tidx num_bins); 44 const Tidx num_bins);
|
D | bincount_op.cc | 44 const Tidx num_bins) { in Compute() 61 DT_BOOL, TensorShape({num_threads, num_bins}), &partial_bins_t)); in Compute() 69 if (value < num_bins) { in Compute() 89 const Tidx num_bins) { in Compute() 106 DataTypeToEnum<T>::value, TensorShape({num_threads, num_bins}), in Compute() 115 if (value < num_bins) { in Compute() 139 const Tidx num_bins) { in Compute() 150 if (value < num_bins) { in Compute()
|
/external/libhevc/encoder/ |
D | ihevce_cabac.h | 348 ihevce_cabac_encode_bypass_bins(cab_ctxt_t *ps_cabac, UWORD32 u4_bins, WORD32 num_bins) in ihevce_cabac_encode_bypass_bins() argument 357 ASSERT((num_bins < 33) && (num_bins > 0)); in ihevce_cabac_encode_bypass_bins() 362 ps_cabac->u4_bits_estimated_q12 += (num_bins << CABAC_FRAC_BITS_Q); in ihevce_cabac_encode_bypass_bins() 365 while(num_bins > 8) in ihevce_cabac_encode_bypass_bins() 367 num_bins -= 8; in ihevce_cabac_encode_bypass_bins() 370 next_byte = (u4_bins >> num_bins) & 0xff; in ihevce_cabac_encode_bypass_bins() 385 next_byte = (u4_bins & ((1 << num_bins) - 1)); in ihevce_cabac_encode_bypass_bins() 387 ps_cabac->u4_low <<= num_bins; in ihevce_cabac_encode_bypass_bins() 389 ps_cabac->u4_bits_gen += num_bins; in ihevce_cabac_encode_bypass_bins() 400 ps_cabac->u4_bits_estimated_q12 += (num_bins << CABAC_FRAC_BITS_Q); in ihevce_cabac_encode_bypass_bins()
|
D | ihevce_cabac.c | 654 WORD32 num_bins, unary_length; in ihevce_cabac_encode_egk() local 682 num_bins = (2 * unary_length) - 1 + k; in ihevce_cabac_encode_egk() 685 error = ihevce_cabac_encode_bypass_bins(ps_cabac, u4_egk, num_bins); in ihevce_cabac_encode_egk() 721 WORD32 num_bins, unary_length, u4_unary_bins; in ihevce_cabac_encode_trunc_rice() local 743 num_bins = unary_length + c_rice_param; in ihevce_cabac_encode_trunc_rice() 746 error = ihevce_cabac_encode_bypass_bins(ps_cabac, u4_tr, num_bins); in ihevce_cabac_encode_trunc_rice()
|
/external/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
D | fd6_vsc.c | 90 primitive_stream_size_bits(const struct pipe_draw_info *info, unsigned num_bins) in primitive_stream_size_bits() argument 94 (bitfield_size_bits(num_bins) /* bitfield of bins covered */ in primitive_stream_size_bits() 113 draw_stream_size_bits(const struct pipe_draw_info *info, unsigned num_bins, in draw_stream_size_bits() argument 117 return (bitfield_size_bits(num_bins) /* bitfield of bins */ in draw_stream_size_bits()
|
/external/libavc/encoder/ |
D | ih264e_cabac.c | 737 WORD32 num_bins) in ih264e_cabac_encode_bypass_bins() argument 746 ASSERT((num_bins < 33) && (num_bins > 0)); in ih264e_cabac_encode_bypass_bins() 753 while (num_bins > 8) in ih264e_cabac_encode_bypass_bins() 755 num_bins -= 8; in ih264e_cabac_encode_bypass_bins() 757 next_byte = (u4_bins >> (num_bins)) & 0xff; in ih264e_cabac_encode_bypass_bins() 772 next_byte = (u4_bins & ((1 << num_bins) - 1)); in ih264e_cabac_encode_bypass_bins() 774 ps_cab_enc_env->u4_code_int_low <<= num_bins; in ih264e_cabac_encode_bypass_bins() 776 ps_cab_enc_env->u4_bits_gen += num_bins; in ih264e_cabac_encode_bypass_bins()
|
D | ih264e_cabac.h | 356 WORD32 num_bins);
|
/external/libxaac/decoder/ |
D | ixheaacd_mps_decorr.c | 156 for (j = 0; j < self->num_bins; j++) { in ixheaacd_mps_decor_energy_adjustment() 187 for (j = 0; j < self->num_bins; j++) { in ixheaacd_mps_decor_energy_adjustment() 215 self->num_bins = subbands; in ixheaacd_mps_decor_init() 217 for (i = 0; i < self->num_bins; i++) { in ixheaacd_mps_decor_init() 227 self->decor_nrg_smooth.num_bins = self->num_bins; in ixheaacd_mps_decor_init() 241 for (idx = 0; idx < self->num_bins; idx++) { in ixheaacd_mps_decor_apply()
|
D | ixheaacd_mps_dec.h | 90 WORD32 num_bins; member 97 WORD32 num_bins; member
|
/external/deqp-deps/amber/src/ |
D | buffer.cc | 182 uint32_t num_bins) const { in GetHistogramForChannel() 183 assert(num_bins == 256); in GetHistogramForChannel() 184 std::vector<uint64_t> bins(num_bins, 0); in GetHistogramForChannel() 213 const int num_bins = 256; in CompareHistogramEMD() local 226 histogram1.push_back(GetHistogramForChannel(c, num_bins)); in CompareHistogramEMD() 227 histogram2.push_back(buffer->GetHistogramForChannel(c, num_bins)); in CompareHistogramEMD() 245 for (size_t i = 0; i < num_bins; ++i) { in CompareHistogramEMD() 254 double emd = diff_total / num_bins; in CompareHistogramEMD()
|
D | buffer.h | 238 uint32_t num_bins) const;
|
/external/libaom/libaom/aom_dsp/ |
D | noise_model.h | 76 int num_bins; member 90 int num_bins, int bit_depth);
|
D | noise_model.c | 252 return (solver->num_bins - 1) * (val - solver->min_intensity) / range; in noise_strength_solver_get_bin_index() 259 const int bin_i1 = AOMMIN(solver->num_bins - 1, bin_i0 + 1); in noise_strength_solver_get_value() 268 const int bin_i1 = AOMMIN(solver->num_bins - 1, bin_i0 + 1); in aom_noise_strength_solver_add_measurement() 270 const int n = solver->num_bins; in aom_noise_strength_solver_add_measurement() 283 const int n = solver->num_bins; in aom_noise_strength_solver_solve() 320 int num_bins, int bit_depth) { in aom_noise_strength_solver_init() argument 323 solver->num_bins = num_bins; in aom_noise_strength_solver_init() 328 return equation_system_init(&solver->eqns, num_bins); in aom_noise_strength_solver_init() 339 const int n = solver->num_bins; in aom_noise_strength_solver_get_center() 349 const double dx = 255. / solver->num_bins; in update_piecewise_linear_residual() [all …]
|
/external/libaom/libaom/test/ |
D | noise_model_test.cc | 133 const int num_bins = 256; in TEST() local 135 aom_noise_strength_solver_init(&solver, num_bins, 8); in TEST() 146 const int num_bins = 256; in TEST() local 148 EXPECT_EQ(1, aom_noise_strength_solver_init(&solver, num_bins, 8)); in TEST() 160 for (int i = 2; i < num_bins - 2; ++i) { in TEST() 178 const int num_bins = 256; in TEST() local 180 EXPECT_EQ(1, aom_noise_strength_solver_init(&solver, num_bins, 8)); in TEST() 1084 for (int i = 0; i < model.combined_state[0].strength_solver.num_bins; ++i) { in TEST() 1086 ((double)i) / (model.combined_state[0].strength_solver.num_bins - 1.0); in TEST() 1094 const int n = model.combined_state[0].strength_solver.num_bins; in TEST() [all …]
|
/external/tensorflow/tensorflow/tools/api/golden/v1/ |
D | tensorflow.keras.layers.experimental.preprocessing.-discretization.-discretizing-combiner.pbtxt | 8 … argspec: "args=[\'self\', \'epsilon\', \'num_bins\'], varargs=None, keywords=None, defaults=None"
|
/external/tensorflow/tensorflow/tools/api/golden/v2/ |
D | tensorflow.keras.layers.experimental.preprocessing.-discretization.-discretizing-combiner.pbtxt | 8 … argspec: "args=[\'self\', \'epsilon\', \'num_bins\'], varargs=None, keywords=None, defaults=None"
|
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/benchmarks/ |
D | hashing_benchmark.py | 74 layer = hashing.Hashing(num_bins=2)
|
/external/libcups/cups/ |
D | ppd-cache.c | 429 num_bins, /* Number of bins in file */ in _ppdCacheCreateWithFile() local 516 num_bins = 0; in _ppdCacheCreateWithFile() 608 if (num_bins > 0) in _ppdCacheCreateWithFile() 615 if ((num_bins = atoi(value)) <= 0 || num_bins > 65536) in _ppdCacheCreateWithFile() 623 if ((pc->bins = calloc((size_t)num_bins, sizeof(pwg_map_t))) == NULL) in _ppdCacheCreateWithFile() 640 if (pc->num_bins >= num_bins) in _ppdCacheCreateWithFile() 648 map = pc->bins + pc->num_bins; in _ppdCacheCreateWithFile() 652 pc->num_bins ++; in _ppdCacheCreateWithFile() 1380 pc->num_bins = output_bin->num_choices; in _ppdCacheCreateWithPPD() 1966 for (i = pc->num_bins, map = pc->bins; i > 0; i --, map ++) in _ppdCacheDestroy() [all …]
|
D | ppd-private.h | 112 int num_bins; /* Number of output bins */ member
|