Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/util/ctc/
Dctc_loss_calculator.h63 Status CalculateLoss(const VectorIn& seq_len, const LabelSequences& labels,
94 int num_classes, const Vector& seq_len,
109 const VectorIn& seq_len, const LabelSequences& labels, in CalculateLoss() argument
144 auto max_seq_len = seq_len(0); in CalculateLoss()
146 if (seq_len(b) < 0) { in CalculateLoss()
149 if (seq_len(b) > num_time_steps) { in CalculateLoss()
152 max_seq_len = std::max(seq_len(b), max_seq_len); in CalculateLoss()
161 batch_size, num_classes, seq_len, labels, &max_u_prime, &l_primes); in CalculateLoss()
168 &seq_len, &inputs, requires_backprop, in CalculateLoss()
176 if (seq_len(b) == 0 || in CalculateLoss()
[all …]
Dctc_beam_search_test.cc151 Eigen::Map<const Eigen::ArrayXi> seq_len(&sequence_lengths[0], batch_size); in TEST() local
166 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in TEST()
177 dictionary_decoder.Decode(seq_len, inputs, &dict_outputs, &scores).ok()); in TEST()
201 Eigen::Map<const Eigen::ArrayXi> seq_len(&sequence_lengths[0], batch_size); in TEST() local
216 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in TEST()
296 Eigen::Map<const Eigen::ArrayXi> seq_len(&sequence_lengths[0], batch_size); in TEST() local
311 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in TEST()
318 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in TEST()
325 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in TEST()
333 EXPECT_TRUE(decoder.Decode(seq_len, inputs, &outputs, &scores).ok()); in TEST()
[all …]
Dctc_decoder.h55 virtual Status Decode(const SequenceLength& seq_len,
76 Status Decode(const CTCDecoder::SequenceLength& seq_len, in Decode() argument
90 int seq_len_b = seq_len[b]; in Decode()
Dctc_beam_search.h101 Status Decode(const CTCDecoder::SequenceLength& seq_len,
158 const CTCDecoder::SequenceLength& seq_len, in Decode() argument
178 int seq_len_b = seq_len[b]; in Decode()
/external/tensorflow/tensorflow/python/data/kernel_tests/
Dbatch_dataset_op_test.py238 seq_len = random_seq_lens[(i * 4) + j]
239 self.assertAllEqual(result[j, :seq_len], [seq_len] * seq_len)
240 self.assertAllEqual(result[j, seq_len:], [0] * (padded_len - seq_len))
254 seq_len = random_seq_lens[(i * 4) + j]
255 self.assertAllEqual(result[j, :seq_len], [seq_len] * seq_len)
256 self.assertAllEqual(result[j, seq_len:], [0] * (25 - seq_len))
305 seq_len = random_seq_lens[(i * 4) + j]
306 self.assertAllEqual(result[0][j, :seq_len], [seq_len] * seq_len)
307 self.assertAllEqual(result[0][j, seq_len:],
308 [-1] * (padded_len - seq_len))
[all …]
/external/libconstrainedcrypto/
Ddsa_sig.c63 int seq_len; in dsa_sig_unpack() local
86 seq_len = sig[1]; in dsa_sig_unpack()
87 if ((seq_len <= 0) || (seq_len + 2 != sig_len)) { in dsa_sig_unpack()
98 if ((r_len < 1) || (r_len > seq_len - 5) || (sig[4 + r_len] != 0x02)) { in dsa_sig_unpack()
109 if ((s_len < 1) || (s_len != seq_len - 4 - r_len)) { in dsa_sig_unpack()
/external/tensorflow/tensorflow/core/kernels/
Dctc_decoder_ops.cc57 OpKernelContext* ctx, const Tensor** inputs, const Tensor** seq_len, in ValidateInputsGenerateOutputs() argument
62 status = ctx->input("sequence_length", seq_len); in ValidateInputsGenerateOutputs()
77 if (!TensorShapeUtils::IsVector((*seq_len)->shape())) { in ValidateInputsGenerateOutputs()
81 if (!(batch_size == (*seq_len)->dim_size(0))) { in ValidateInputsGenerateOutputs()
84 "len(sequence_length): ", (*seq_len)->dim_size(0), in ValidateInputsGenerateOutputs()
88 auto seq_len_t = (*seq_len)->vec<int32>(); in ValidateInputsGenerateOutputs()
180 const Tensor* seq_len; in Compute() local
186 ctx, &inputs, &seq_len, &log_prob, &decoded_indices, in Compute()
206 auto seq_len_t = seq_len->vec<int32>(); in Compute()
259 const Tensor* seq_len; in Compute() local
[all …]
Dctc_loss_op.cc53 const Tensor* seq_len; in Compute() local
57 OP_REQUIRES_OK(ctx, ctx->input("sequence_length", &seq_len)); in Compute()
61 OP_REQUIRES(ctx, TensorShapeUtils::IsVector(seq_len->shape()), in Compute()
78 ctx, batch_size == seq_len->dim_size(0), in Compute()
80 "len(sequence_length): ", seq_len->dim_size(0), in Compute()
82 auto seq_len_t = seq_len->vec<int32>(); in Compute()
137 OP_REQUIRES_OK(ctx, ctx->allocate_output("loss", seq_len->shape(), &loss)); in Compute()
/external/syslinux/gpxe/src/net/
Dtcp.c402 uint32_t seq_len; in tcp_xmit() local
418 seq_len = len; in tcp_xmit()
423 seq_len++; in tcp_xmit()
425 tcp->snd_sent = seq_len; in tcp_xmit()
428 if ( ( seq_len == 0 ) && ! force_send ) in tcp_xmit()
436 if ( seq_len ) in tcp_xmit()
443 "%08x\n", tcp, tcp->snd_seq, ( tcp->snd_seq + seq_len ), in tcp_xmit()
495 ntohl ( tcphdr->seq ), ( ntohl ( tcphdr->seq ) + seq_len ), in tcp_xmit()
674 static void tcp_rx_seq ( struct tcp_connection *tcp, uint32_t seq_len ) { in tcp_rx_seq() argument
675 tcp->rcv_ack += seq_len; in tcp_rx_seq()
[all …]
/external/tensorflow/tensorflow/contrib/eager/python/examples/rnn_ptb/
Drnn_ptb.py165 def _get_batch(data, i, seq_len): argument
166 slen = min(seq_len, data.shape[0] - 1 - i)
177 for _, i in enumerate(range(0, data.shape[0] - 1, FLAGS.seq_len)):
178 inp, target = _get_batch(data, i, FLAGS.seq_len)
318 train(model, optimizer, train_data, FLAGS.seq_len, FLAGS.clip)
/external/wpa_supplicant_8/src/drivers/
Ddriver_privsep.c211 const u8 *seq, size_t seq_len, in wpa_driver_privsep_set_key() argument
228 if (seq && seq_len > 0 && seq_len < sizeof(cmd.seq)) { in wpa_driver_privsep_set_key()
229 os_memcpy(cmd.seq, seq, seq_len); in wpa_driver_privsep_set_key()
230 cmd.seq_len = seq_len; in wpa_driver_privsep_set_key()
Ddriver_wext.h57 int set_tx, const u8 *seq, size_t seq_len,
Ddriver_openbsd.c73 size_t seq_len, const u8 *key, size_t key_len) in wpa_driver_openbsd_set_key() argument
Ddriver_wext.c1711 size_t seq_len, in wpa_driver_wext_set_key_ext() argument
1719 if (seq_len > IW_ENCODE_SEQ_MAX_SIZE) { in wpa_driver_wext_set_key_ext()
1721 __FUNCTION__, (unsigned long) seq_len); in wpa_driver_wext_set_key_ext()
1779 if (seq && seq_len) { in wpa_driver_wext_set_key_ext()
1781 os_memcpy(ext->rx_seq, seq, seq_len); in wpa_driver_wext_set_key_ext()
1830 int set_tx, const u8 *seq, size_t seq_len, in wpa_driver_wext_set_key() argument
1840 (unsigned long) seq_len, (unsigned long) key_len); in wpa_driver_wext_set_key()
1843 seq, seq_len, key, key_len); in wpa_driver_wext_set_key()
Ddriver_bsd.c336 size_t seq_len, const u8 *key, size_t key_len) in bsd_set_key() argument
345 set_tx, seq_len, key_len); in bsd_set_key()
415 for (i = 0; i < seq_len; i++) in bsd_set_key()
418 os_memcpy(&wk.ik_keyrsc, seq, seq_len); in bsd_set_key()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dreverse_sequence_op.cc105 auto seq_len = body_builder->DynamicSlice( in Compile() local
125 seq_len), in Compile()
/external/wpa_supplicant_8/src/common/
Dprivsep_commands.h82 size_t seq_len; member
/external/tensorflow/tensorflow/contrib/rnn/kernels/
Dlstm_ops.h79 typename TTypes<int64>::ConstVec seq_len, in operator()
83 mask.device(d) = seq_len.constant(time_idx) < seq_len; in operator()
/external/boringssl/src/ssl/
Dtls_record.cc154 int 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/perfetto/src/tracing/core/
Dtrace_buffer_unittest.cc564 for (unsigned seq_len = 1; seq_len <= 10; seq_len++) { in TEST_F() local
572 for (unsigned i = 1; i <= seq_len; i++) { in TEST_F()
580 CreateChunk(ProducerID(1), WriterID(1), ChunkID(seq_len + 1)) in TEST_F()
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_i.h190 const u8 *seq, size_t seq_len, in wpa_sm_set_key() argument
195 seq, seq_len, key, key_len); in wpa_sm_set_key()
/external/python/cpython3/Modules/
D_posixsubprocess.c114 Py_ssize_t seq_idx, seq_len = PySequence_Length(fd_sequence); in _sanity_check_python_fd_sequence() local
116 for (seq_idx = 0; seq_idx < seq_len; ++seq_idx) { in _sanity_check_python_fd_sequence()
/external/wpa_supplicant_8/wpa_supplicant/
Dibss_rsn.c141 const u8 *seq, size_t seq_len, in supp_set_key() argument
149 wpa_hexdump(MSG_DEBUG, "SUPP: set_key - seq", seq, seq_len); in supp_set_key()
169 set_tx, seq, seq_len, key, key_len); in supp_set_key()
Dpreauth_test.c129 const u8 *seq, size_t seq_len, in wpa_supplicant_set_key() argument
Ddriver_i.h144 const u8 *seq, size_t seq_len, in wpa_drv_set_key() argument
156 seq, seq_len, key, key_len); in wpa_drv_set_key()

12