/external/tensorflow/tensorflow/python/data/kernel_tests/ |
D | padded_batch_test.py | 67 seq_len = seq_lens[(i * batch_size) + j] 68 self.assertAllEqual(result[j, :seq_len], [seq_len] * seq_len) 69 self.assertAllEqual(result[j, seq_len:], [0] * (padded_len - seq_len)) 78 seq_len = seq_lens[num_full_batches * batch_size + j] 79 self.assertAllEqual(result[j, :seq_len], [seq_len] * seq_len) 80 self.assertAllEqual(result[j, seq_len:], [0] * (padded_len - seq_len)) 160 seq_len = random_seq_lens[(i * 4) + j] 161 self.assertAllEqual(result[0][j, :seq_len], [seq_len] * seq_len) 162 self.assertAllEqual(result[0][j, seq_len:], 163 [-1] * (padded_len - seq_len)) [all …]
|
/external/tensorflow/tensorflow/core/util/ctc/ |
D | ctc_loss_calculator.h | 68 Status CalculateLoss(const VectorIn& seq_len, const LabelSequences& labels, 99 int num_classes, const Vector& seq_len, 115 const VectorIn& seq_len, const LabelSequences& labels, in CalculateLoss() argument 152 auto max_seq_len = seq_len(0); in CalculateLoss() 154 if (seq_len(b) < 0) { in CalculateLoss() 157 if (seq_len(b) > num_time_steps) { in CalculateLoss() 160 max_seq_len = std::max(seq_len(b), max_seq_len); in CalculateLoss() 169 batch_size, num_classes, seq_len, labels, &max_u_prime, &l_primes); in CalculateLoss() 176 &seq_len, &inputs, requires_backprop, in CalculateLoss() 184 if (seq_len(b) == 0 || in CalculateLoss() [all …]
|
D | ctc_beam_search_test.cc | 157 Eigen::Map<const Eigen::ArrayXi> seq_len(&sequence_lengths[0], batch_size); in ctc_beam_search_decoding_with_and_without_dictionary() local 176 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in ctc_beam_search_decoding_with_and_without_dictionary() 188 dictionary_decoder.Decode(seq_len, inputs, &dict_outputs, &scores).ok()); in ctc_beam_search_decoding_with_and_without_dictionary() 215 Eigen::Map<const Eigen::ArrayXi> seq_len(&sequence_lengths[0], batch_size); in ctc_beam_search_decoding_all_beam_elements_have_finite_scores() local 234 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in ctc_beam_search_decoding_all_beam_elements_have_finite_scores() 320 Eigen::Map<const Eigen::ArrayXi> seq_len(&sequence_lengths[0], batch_size); in ctc_beam_search_label_selection() local 339 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in ctc_beam_search_label_selection() 346 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in ctc_beam_search_label_selection() 353 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in ctc_beam_search_label_selection() 361 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in ctc_beam_search_label_selection() [all …]
|
D | ctc_decoder.h | 59 virtual Status Decode(const SequenceLength& seq_len, 82 Status Decode(const typename CTCDecoder<T>::SequenceLength& seq_len, in Decode() argument 96 int seq_len_b = seq_len[b]; in Decode()
|
D | ctc_beam_search.h | 102 Status Decode(const typename CTCDecoder<T>::SequenceLength& seq_len, 160 const typename CTCDecoder<T>::SequenceLength& seq_len, in Decode() argument 181 int seq_len_b = seq_len[b]; in Decode()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | ctc_loss_op.cc | 91 const Tensor* seq_len; in Compute() local 95 OP_REQUIRES_OK(ctx, ctx->input("sequence_length", &seq_len)); in Compute() 99 OP_REQUIRES(ctx, TensorShapeUtils::IsVector(seq_len->shape()), in Compute() 116 ctx, batch_size == seq_len->dim_size(0), in Compute() 118 "len(sequence_length): ", seq_len->dim_size(0), in Compute() 120 auto seq_len_t = seq_len->vec<int32>(); in Compute() 177 OP_REQUIRES_OK(ctx, ctx->allocate_output("loss", seq_len->shape(), &loss)); in Compute() 259 const Tensor* seq_len; in Compute() local 263 OP_REQUIRES_OK(ctx, ctx->input("sequence_length", &seq_len)); in Compute() 267 OP_REQUIRES(ctx, TensorShapeUtils::IsVector(seq_len->shape()), in Compute() [all …]
|
D | ctc_decoder_ops.cc | 60 OpKernelContext* ctx, const Tensor** inputs, const Tensor** seq_len, in ValidateInputsGenerateOutputs() argument 65 status = ctx->input("sequence_length", seq_len); in ValidateInputsGenerateOutputs() 80 if (!TensorShapeUtils::IsVector((*seq_len)->shape())) { in ValidateInputsGenerateOutputs() 84 if (!(batch_size == (*seq_len)->dim_size(0))) { in ValidateInputsGenerateOutputs() 87 "len(sequence_length): ", (*seq_len)->dim_size(0), in ValidateInputsGenerateOutputs() 91 auto seq_len_t = (*seq_len)->vec<int32>(); in ValidateInputsGenerateOutputs() 191 const Tensor* seq_len; in Compute() local 197 ctx, &inputs, &seq_len, &log_prob, &decoded_indices, in Compute() 218 auto seq_len_t = seq_len->vec<int32>(); in Compute() 289 const Tensor* seq_len; in Compute() local [all …]
|
/external/adhd/cras/src/plc/ |
D | cras_plc_test.c | 58 int i, pl_hex_len, seq_len; in parse_pl_hex() local 62 seq_len = MAX(1 + input_file_size / MSBC_CODE_SIZE, pl_hex_len * 4); in parse_pl_hex() 63 seq = (bool *)calloc(seq_len, sizeof(*seq)); in parse_pl_hex() 65 for (i = 0; i < seq_len; i++) { in parse_pl_hex() 79 strlen(pl_hex) * 30, seq_len * 7.5f); in parse_pl_hex()
|
/external/tensorflow/tensorflow/lite/experimental/kernels/ |
D | ctc_decoder.h | 56 virtual bool Decode(const SequenceLength& seq_len, 77 bool Decode(const CTCDecoder::SequenceLength& seq_len, in Decode() argument 89 int seq_len_b = seq_len[b]; in Decode()
|
D | ctc_beam_search.h | 100 bool Decode(const CTCDecoder::SequenceLength& seq_len, 158 const CTCDecoder::SequenceLength& seq_len, in Decode() argument 176 int seq_len_b = seq_len[b]; in Decode()
|
/external/tensorflow/tensorflow/python/ops/signal/ |
D | dct_ops.py | 104 seq_len = ( 108 if n <= seq_len: 113 padding[rank - 1][1] = n - seq_len
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_privsep.c | 218 size_t seq_len = params->seq_len; in wpa_driver_privsep_set_key() local 234 if (seq && seq_len > 0 && seq_len < sizeof(cmd.seq)) { in wpa_driver_privsep_set_key() 235 os_memcpy(cmd.seq, seq, seq_len); in wpa_driver_privsep_set_key() 236 cmd.seq_len = seq_len; in wpa_driver_privsep_set_key()
|
D | driver_wext.c | 1719 size_t seq_len, in wpa_driver_wext_set_key_ext() argument 1728 if (seq_len > IW_ENCODE_SEQ_MAX_SIZE) { in wpa_driver_wext_set_key_ext() 1730 __FUNCTION__, (unsigned long) seq_len); in wpa_driver_wext_set_key_ext() 1787 if (seq && seq_len) { in wpa_driver_wext_set_key_ext() 1789 os_memcpy(ext->rx_seq, seq, seq_len); in wpa_driver_wext_set_key_ext() 1831 size_t seq_len = params->seq_len; in wpa_driver_wext_set_key() local 1838 (unsigned long) seq_len, (unsigned long) key_len); in wpa_driver_wext_set_key() 1841 seq, seq_len, key, key_len, key_flag); in wpa_driver_wext_set_key()
|
D | driver_bsd.c | 324 size_t seq_len = params->seq_len; in bsd_set_key() local 330 set_tx, seq_len, key_len); in bsd_set_key() 400 for (i = 0; i < seq_len; i++) in bsd_set_key() 403 os_memcpy(&wk.ik_keyrsc, seq, seq_len); in bsd_set_key()
|
/external/wpa_supplicant_8/src/common/ |
D | privsep_commands.h | 82 size_t seq_len; member
|
/external/tensorflow/tensorflow/core/kernels/rnn/ |
D | lstm_ops.h | 89 typename TTypes<int64>::ConstVec seq_len, in operator() 92 mask.device(d) = seq_len.constant(time_idx) < seq_len; in operator()
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/ |
D | tls_record.cc | 154 bool ssl_record_sequence_update(uint8_t *seq, size_t seq_len) { in ssl_record_sequence_update() argument 155 for (size_t i = seq_len - 1; i < seq_len; i--) { in ssl_record_sequence_update()
|
/external/boringssl/src/ssl/ |
D | tls_record.cc | 154 bool ssl_record_sequence_update(uint8_t *seq, size_t seq_len) { in ssl_record_sequence_update() argument 155 for (size_t i = seq_len - 1; i < seq_len; i--) { in ssl_record_sequence_update()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | ibss_rsn.c | 148 const u8 *seq, size_t seq_len, in supp_set_key() argument 156 wpa_hexdump(MSG_DEBUG, "SUPP: set_key - seq", seq, seq_len); in supp_set_key() 176 set_tx, seq, seq_len, key, key_len, key_flag); in supp_set_key()
|
D | driver_i.h | 149 const u8 *seq, size_t seq_len, in wpa_drv_set_key() argument 162 params.seq_len = seq_len; in wpa_drv_set_key()
|
D | preauth_test.c | 135 const u8 *seq, size_t seq_len, in wpa_supplicant_set_key() argument
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa_i.h | 242 const u8 *seq, size_t seq_len, in wpa_sm_set_key() argument 248 seq, seq_len, key, key_len, key_flag); in wpa_sm_set_key()
|
/external/tensorflow/tensorflow/python/keras/feature_column/ |
D | sequence_feature_column_test.py | 557 seq_input, seq_len = sequence_features(features) 569 self.assertAllClose([2, 1, 1, 1], self.evaluate(seq_len))
|
/external/tensorflow/tensorflow/lite/g3doc/tutorials/ |
D | model_maker_text_classification.ipynb | 623 …"You can adjust the model infrastructure like the `wordvec_dim` and the `seq_len` variables in the… 702 "* `seq_len`: Length of the sequence to feed into the model.\n", 713 …"For instance, you can set the `seq_len=256` (default is 128). This allows the model to classify l… 725 "new_model_spec.seq_len = 256"
|
/external/perfetto/src/tracing/core/ |
D | trace_buffer_unittest.cc | 720 for (unsigned seq_len = 1; seq_len <= 10; seq_len++) { in TEST_F() local 728 for (unsigned i = 1; i <= seq_len; i++) { in TEST_F() 736 CreateChunk(ProducerID(1), WriterID(1), ChunkID(seq_len + 1)) in TEST_F()
|