/external/tensorflow/tensorflow/python/keras/tests/ |
D | model_subclassing_compiled_test.py | 43 num_samples = 100 55 x = np.ones((num_samples, input_dim)) 56 y = np.zeros((num_samples, num_classes)) 63 num_samples = 1000 75 x1 = np.ones((num_samples, input_dim)) 76 x2 = np.ones((num_samples, input_dim)) 77 y1 = np.zeros((num_samples, num_classes[0])) 78 y2 = np.zeros((num_samples, num_classes[1])) 85 num_samples = 10 97 x = np.ones((num_samples, input_dim), dtype=np.float32) [all …]
|
/external/tensorflow/tensorflow/python/keras/layers/ |
D | lstm_test.py | 38 num_samples = 2 46 input_shape=(num_samples, timesteps, embedding_dim)) 50 num_samples = 2 59 input_shape=(num_samples, timesteps, embedding_dim), 78 num_samples = 2 91 x = np.random.random((num_samples, timesteps, embedding_dim)) 92 y = np.random.random((num_samples, units)) 96 num_samples = 2 105 input_shape=(num_samples, timesteps, embedding_dim)) 114 num_samples = 2 [all …]
|
D | gru_test.py | 38 num_samples = 2 46 input_shape=(num_samples, timesteps, embedding_dim)) 50 num_samples = 2 59 input_shape=(num_samples, timesteps, embedding_dim), 63 num_samples = 2 75 x = np.random.random((num_samples, timesteps, embedding_dim)) 76 y = np.random.random((num_samples, units)) 80 num_samples = 2 89 input_shape=(num_samples, timesteps, embedding_dim)) 98 num_samples = 2 [all …]
|
D | simplernn_test.py | 37 num_samples = 2 45 input_shape=(num_samples, timesteps, embedding_dim)) 49 num_samples = 2 58 input_shape=(num_samples, timesteps, embedding_dim), 62 num_samples = 2 70 x = np.random.random((num_samples, timesteps, embedding_dim)) 71 y = np.random.random((num_samples, units)) 75 num_samples = 2 84 input_shape=(num_samples, timesteps, embedding_dim)) 87 num_samples = 2 [all …]
|
D | cudnn_recurrent_test.py | 49 num_samples = 32 54 input_shape=(num_samples, timesteps, input_size)) 65 num_samples = 32 70 input_shape=(num_samples, timesteps, input_size)) 81 num_samples = 32 84 inputs = keras.Input(batch_shape=(num_samples, timesteps, input_size)) 93 inputs = np.random.random((num_samples, timesteps, input_size)) 107 num_samples = 32 119 np.ones((num_samples, timesteps, input_size)), 120 np.ones((num_samples, timesteps, units))) [all …]
|
D | local_test.py | 89 num_samples = 2 114 input_shape=(num_samples, num_steps, input_dim)) 119 num_samples = 2 140 layer.build((num_samples, num_steps, input_dim)) 144 np.ones((num_samples, num_steps, input_dim)))) 157 layer.build((num_samples, num_steps, input_dim)) 168 num_samples = 8 196 input_shape=(num_samples, num_row, num_col, stack_size)) 202 num_samples = 8 221 input_shape=(num_samples, num_row, num_col, stack_size)) [all …]
|
D | convolutional_test.py | 36 num_samples = 2 44 input_shape=(num_samples, length, stack_size), 103 num_samples = 2 112 input_shape=(num_samples, num_row, num_col, stack_size), 172 num_samples = 2 182 input_shape=(num_samples, depth, num_row, num_col, stack_size), 325 num_samples = 2 328 shape = (num_samples, num_steps, input_dim) 375 num_samples = 2 380 inputs = np.ones((num_samples, input_num_row, input_num_col, stack_size)) [all …]
|
D | lstm_v2_test.py | 107 num_samples = 2 115 x = np.random.random((num_samples, timesteps, embedding_dim)) 116 y = np.random.random((num_samples, units)) 143 num_samples = 2 162 inputs = np.random.random((num_samples, timesteps, embedding_dim)) 164 np.random.random((num_samples, units)) for _ in range(num_states) 166 targets = np.random.random((num_samples, units)) 174 num_samples = 2 179 keras.backend.random_normal_variable((num_samples, units), 0, 1) 190 inputs = np.random.random((num_samples, timesteps, embedding_dim)) [all …]
|
/external/webrtc/webrtc/common_audio/ |
D | wav_file.cc | 45 << (1.f * num_samples()) / (num_channels() * sample_rate()) << " s"; in FormatAsString() 67 size_t WavReader::ReadSamples(size_t num_samples, int16_t* samples) { in ReadSamples() argument 72 num_samples = std::min(num_samples, num_samples_remaining_); in ReadSamples() 74 fread(samples, sizeof(*samples), num_samples, file_handle_); in ReadSamples() 76 RTC_CHECK(read == num_samples || feof(file_handle_)); in ReadSamples() 82 size_t WavReader::ReadSamples(size_t num_samples, float* samples) { in ReadSamples() argument 85 for (size_t i = 0; i < num_samples; i += kChunksize) { in ReadSamples() 87 size_t chunk = std::min(kChunksize, num_samples - i); in ReadSamples() 121 void WavWriter::WriteSamples(const int16_t* samples, size_t num_samples) { in WriteSamples() argument 126 fwrite(samples, sizeof(*samples), num_samples, file_handle_); in WriteSamples() [all …]
|
D | wav_header_unittest.cc | 98 size_t num_samples = 0; in TEST() local 123 &bytes_per_sample, &num_samples)); in TEST() 144 &bytes_per_sample, &num_samples)); in TEST() 165 &bytes_per_sample, &num_samples)); in TEST() 187 &bytes_per_sample, &num_samples)); in TEST() 210 &bytes_per_sample, &num_samples)); in TEST() 229 &bytes_per_sample, &num_samples)); in TEST() 241 &bytes_per_sample, &num_samples)); in TEST() 275 size_t num_samples = 0; in TEST() local 279 &bytes_per_sample, &num_samples)); in TEST() [all …]
|
D | wav_file.h | 31 virtual size_t num_samples() const = 0; 50 void WriteSamples(const float* samples, size_t num_samples); 51 void WriteSamples(const int16_t* samples, size_t num_samples); 55 size_t num_samples() const override { return num_samples_; } in num_samples() function 78 size_t ReadSamples(size_t num_samples, float* samples); 79 size_t ReadSamples(size_t num_samples, int16_t* samples); 83 size_t num_samples() const override { return num_samples_; } in num_samples() function 109 size_t num_samples);
|
D | wav_header.cc | 66 size_t num_samples) { in CheckWavParameters() argument 104 if (num_samples > max_samples) in CheckWavParameters() 108 if (num_samples % num_channels != 0) in CheckWavParameters() 153 size_t num_samples) { in WriteWavHeader() argument 155 bytes_per_sample, num_samples)); in WriteWavHeader() 158 const size_t bytes_in_payload = bytes_per_sample * num_samples; in WriteWavHeader() 188 size_t* num_samples) { in ReadWavHeader() argument 217 *num_samples = bytes_in_payload / *bytes_per_sample; in ReadWavHeader() 239 *bytes_per_sample, *num_samples); in ReadWavHeader()
|
/external/tensorflow/tensorflow/python/kernel_tests/random/ |
D | multinomial_op_test.py | 40 def composed_sampler(logits, num_samples): argument 43 tensor_shape.TensorShape([num_samples]))) 64 num_samples = 1000 66 logits, num_samples, output_dtype=output_dtype)) 67 self.assertAllEqual([[1] * num_samples, [2] * num_samples], samples) 112 num_samples = 21000 122 composed_freqs = self._do_sampling(logits, num_samples, composed_sampler) 123 native_freqs = self._do_sampling(logits, num_samples, native_sampler) 138 def _make_ops(self, num_samples, seed=None): argument 142 sample_op1 = random_ops.multinomial(logits, num_samples, seed) [all …]
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | statistics_calculator.cc | 143 void StatisticsCalculator::ExpandedVoiceSamples(size_t num_samples) { in ExpandedVoiceSamples() argument 144 expanded_speech_samples_ += num_samples; in ExpandedVoiceSamples() 147 void StatisticsCalculator::ExpandedNoiseSamples(size_t num_samples) { in ExpandedNoiseSamples() argument 148 expanded_noise_samples_ += num_samples; in ExpandedNoiseSamples() 151 void StatisticsCalculator::PreemptiveExpandedSamples(size_t num_samples) { in PreemptiveExpandedSamples() argument 152 preemptive_samples_ += num_samples; in PreemptiveExpandedSamples() 155 void StatisticsCalculator::AcceleratedSamples(size_t num_samples) { in AcceleratedSamples() argument 156 accelerate_samples_ += num_samples; in AcceleratedSamples() 159 void StatisticsCalculator::AddZeros(size_t num_samples) { in AddZeros() argument 160 added_zero_samples_ += num_samples; in AddZeros() [all …]
|
D | statistics_calculator.h | 42 void ExpandedVoiceSamples(size_t num_samples); 46 void ExpandedNoiseSamples(size_t num_samples); 50 void PreemptiveExpandedSamples(size_t num_samples); 53 void AcceleratedSamples(size_t num_samples); 56 void AddZeros(size_t num_samples); 62 void LostSamples(size_t num_samples); 67 void IncreaseCounter(size_t num_samples, int fs_hz); 73 void SecondaryDecodedSamples(int num_samples);
|
/external/igt-gpu-tools/overlay/ |
D | chart.c | 34 int chart_init(struct chart *chart, const char *name, int num_samples) in chart_init() argument 38 chart->samples = malloc(sizeof(*chart->samples)*num_samples); in chart_init() 42 chart->num_samples = num_samples; in chart_init() 102 if (max > chart->num_samples) in chart_get_range() 103 max = chart->num_samples; in chart_get_range() 116 if (chart->num_samples == 0) in chart_add_sample() 119 pos = chart->current_sample++ % chart->num_samples; in chart_add_sample() 126 if (max > chart->num_samples) in chart_update_range() 127 max = chart->num_samples; in chart_update_range() 141 if (n < chart->current_sample - chart->num_samples) in value_at() [all …]
|
/external/libxaac/decoder/ |
D | ixheaacd_mps_hybrid_filt.c | 52 WORD32 num_samples, const WORD32 *filt_coeff) in ixheaacd_mps_hyb_filt_type1() argument 65 for (i = 0; i < num_samples; i++) { in ixheaacd_mps_hyb_filt_type1() 114 WORD32 num_samples, const WORD32 *filt_coeff) in ixheaacd_mps_hyb_filt_type2() argument 127 for (i = 0; i < num_samples; i++) { in ixheaacd_mps_hyb_filt_type2() 179 WORD32 num_bands, WORD32 num_samples, in ixheaacd_mps_qmf_hybrid_analysis() argument 188 lf_samples_shift = BUFFER_LEN_LF_MPS - num_samples; in ixheaacd_mps_qmf_hybrid_analysis() 189 hf_samples_shift = BUFFER_LEN_HF_MPS - num_samples; in ixheaacd_mps_qmf_hybrid_analysis() 195 handle->lf_buffer[k][n].re = handle->lf_buffer[k][n + num_samples].re; in ixheaacd_mps_qmf_hybrid_analysis() 196 handle->lf_buffer[k][n].im = handle->lf_buffer[k][n + num_samples].im; in ixheaacd_mps_qmf_hybrid_analysis() 201 for (n = 0; n < num_samples; n++) { in ixheaacd_mps_qmf_hybrid_analysis() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | random_poisson_op.cc | 74 int num_rate, int num_samples, 81 int num_rate, int num_samples, in operator ()() 106 auto DoWork = [num_samples, num_rate, &rng, samples_flat, rate_flat]( in operator ()() 116 const int64 rate_idx = output_idx / num_samples; in operator ()() 135 for (int64 sample_idx = output_idx % num_samples; in operator ()() 136 sample_idx < num_samples && output_idx < limit_output; in operator ()() 197 for (int64 sample_idx = output_idx % num_samples; in operator ()() 198 sample_idx < num_samples && output_idx < limit_output; in operator ()() 270 num_rate * num_samples, kElementCost, DoWork); in operator ()() 295 const int64 num_samples = samples_shape.num_elements(); in Compute() local [all …]
|
D | multinomial_op_gpu.cu.cc | 48 const int32 num_samples, in MultinomialKernel() argument 69 int num_classes, int num_samples, in operator ()() 80 bsc.set(1, num_samples); in operator ()() 88 oso.set(1, num_samples); in operator ()() 90 Eigen::array<int, 3> bsc{batch_size, num_samples, num_classes}; in operator ()() 92 Eigen::array<int, 3> oso{1, num_samples, 1}; in operator ()() 113 /*in_dim0=*/batch_size * num_samples, in operator ()() 120 const int32 work_items = batch_size * num_samples * num_classes; in operator ()() 125 num_classes, num_samples, scores.data(), maxima.data(), output.data())); in operator ()()
|
D | multinomial_op.cc | 51 int num_classes, int num_samples, 77 int num_classes, int num_samples, in operator ()() 86 auto DoWork = [ctx, num_samples, num_classes, &gen, &output, &logits]( in operator ()() 94 gen_copy.Skip(start_row * (num_samples + 3) / 4); in operator ()() 128 for (int64 j = 0; j < num_samples; ++j) { in operator ()() 137 50 * (num_samples * std::log(num_classes) / std::log(2) + num_classes); in operator ()() 163 const int num_samples = num_samples_t.scalar<int>()(); in DoCompute() local 164 OP_REQUIRES(ctx, num_samples >= 0, in DoCompute() 166 "num_samples should be nonnegative, got ", num_samples)); in DoCompute() 183 ctx, ctx->allocate_output(0, TensorShape({batch_size, num_samples}), in DoCompute() [all …]
|
/external/libiio/src/tests/ |
D | iio_readdev.c | 71 static size_t num_samples; variable 191 if (num_samples != 0) { in print_sample() 192 num_samples--; in print_sample() 193 if (num_samples == 0) { in print_sample() 282 num_samples = atoi(optarg); in main() 399 if (num_samples && len > num_samples * sample_size) in main() 400 len = num_samples * sample_size; in main() 411 if (num_samples) { in main() 412 num_samples -= read_len / sample_size; in main() 413 if (!num_samples) in main()
|
D | iio_writedev.c | 82 static size_t num_samples; variable 202 if (num_samples != 0) { in read_sample() 203 num_samples--; in read_sample() 204 if (num_samples == 0) { in read_sample() 294 num_samples = atoi(optarg); in main() 408 if (num_samples && len > num_samples * sample_size) in main() 409 len = num_samples * sample_size; in main() 420 if (num_samples) { in main() 421 num_samples -= write_len / sample_size; in main() 422 if (!num_samples) in main()
|
/external/webrtc/webrtc/modules/video_coding/utility/ |
D | moving_average.h | 24 bool GetAverage(size_t num_samples, T* average); 44 bool MovingAverage<T>::GetAverage(size_t num_samples, T* avg) { in GetAverage() argument 45 if (num_samples > samples_.size()) in GetAverage() 49 while (num_samples < samples_.size()) { in GetAverage() 54 *avg = sum_ / static_cast<T>(num_samples); in GetAverage()
|
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
D | audio_sink.h | 30 virtual bool WriteArray(const int16_t* audio, size_t num_samples) = 0; 50 bool WriteArray(const int16_t* audio, size_t num_samples) override { in WriteArray() argument 51 return left_sink_->WriteArray(audio, num_samples) && in WriteArray() 52 right_sink_->WriteArray(audio, num_samples); in WriteArray()
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/ |
D | directed_interleave_dataset_test.py | 63 def _testSampleFromDatasetsHelper(self, weights, num_datasets, num_samples): argument 70 dataset = dataset.take(num_samples) 74 for _ in range(num_samples): 84 num_samples = 5000 93 freqs = self._testSampleFromDatasetsHelper(probs, classes, num_samples) 94 self.assertLess(self._chi2(probs, freqs / num_samples), 1e-2) 98 freqs = self._testSampleFromDatasetsHelper(probs_ds, classes, num_samples) 99 self.assertLess(self._chi2(probs, freqs / num_samples), 1e-2)
|