Home
last modified time | relevance | path

Searched refs:seq_len (Results 1 – 25 of 41) sorted by relevance

12

/external/tensorflow/tensorflow/python/data/kernel_tests/
Dpadded_batch_test.py67 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/
Dctc_loss_calculator.h68 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 …]
Dctc_beam_search_test.cc157 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 …]
Dctc_decoder.h59 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()
Dctc_beam_search.h102 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/
Dctc_loss_op.cc91 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 …]
Dctc_decoder_ops.cc60 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/
Dcras_plc_test.c58 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/
Dctc_decoder.h56 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()
Dctc_beam_search.h100 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/
Ddct_ops.py104 seq_len = (
108 if n <= seq_len:
113 padding[rank - 1][1] = n - seq_len
/external/wpa_supplicant_8/src/drivers/
Ddriver_privsep.c218 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()
Ddriver_wext.c1719 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()
Ddriver_bsd.c324 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/
Dprivsep_commands.h82 size_t seq_len; member
/external/tensorflow/tensorflow/core/kernels/rnn/
Dlstm_ops.h89 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/
Dtls_record.cc154 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/
Dtls_record.cc154 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/
Dibss_rsn.c148 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()
Ddriver_i.h149 const u8 *seq, size_t seq_len, in wpa_drv_set_key() argument
162 params.seq_len = seq_len; in wpa_drv_set_key()
Dpreauth_test.c135 const u8 *seq, size_t seq_len, in wpa_supplicant_set_key() argument
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_i.h242 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/
Dsequence_feature_column_test.py557 seq_input, seq_len = sequence_features(features)
569 self.assertAllClose([2, 1, 1, 1], self.evaluate(seq_len))
/external/tensorflow/tensorflow/lite/g3doc/tutorials/
Dmodel_maker_text_classification.ipynb623 …"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/
Dtrace_buffer_unittest.cc720 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()

12