Home
last modified time | relevance | path

Searched refs:sequence_length (Results 1 – 25 of 54) sorted by relevance

123

/external/tensorflow/tensorflow/python/ops/
Drnn.py149 time, sequence_length, min_sequence_length, max_sequence_length, argument
207 copy_cond = time >= sequence_length
328 def bidirectional_dynamic_rnn(cell_fw, cell_bw, inputs, sequence_length=None, argument
416 cell=cell_fw, inputs=inputs, sequence_length=sequence_length,
439 inputs, seq_lengths=sequence_length,
442 cell=cell_bw, inputs=inputs_reverse, sequence_length=sequence_length,
448 tmp, seq_lengths=sequence_length,
458 def dynamic_rnn(cell, inputs, sequence_length=None, initial_state=None, argument
593 if sequence_length is not None:
594 sequence_length = math_ops.to_int32(sequence_length)
[all …]
Dctc_ops.py33 def ctc_loss(labels, inputs, sequence_length, argument
155 sequence_length,
191 def ctc_greedy_decoder(inputs, sequence_length, merge_repeated=True): argument
228 inputs, sequence_length, merge_repeated=merge_repeated)
235 def ctc_beam_search_decoder(inputs, sequence_length, beam_width=100, argument
276 inputs, sequence_length, beam_width=beam_width, top_paths=top_paths,
/external/tensorflow/tensorflow/contrib/rnn/python/ops/
Dfused_rnn_cell.py48 sequence_length=None, argument
98 sequence_length=None, argument
107 sequence_length=sequence_length,
123 sequence_length=sequence_length,
173 sequence_length=None, argument
175 inputs = self._reverse(inputs, sequence_length)
180 sequence_length=sequence_length,
182 outputs = self._reverse(outputs, sequence_length)
Drnn.py31 sequence_length=None, argument
116 sequence_length=sequence_length,
131 sequence_length=None, argument
230 sequence_length=sequence_length,
Dlstm_ops.py454 sequence_length): argument
479 def call(self, inputs, initial_state=None, dtype=None, sequence_length=None): argument
535 if sequence_length is not None:
536 sequence_length = ops.convert_to_tensor(sequence_length)
539 inputs, initial_cell_state, initial_output, dtype, sequence_length)
541 if sequence_length is not None:
544 array_ops.sequence_mask(sequence_length, time_len, dtype=dtype),
557 final_cell_state = self._gather_states(mod_cell_states, sequence_length,
559 final_output = self._gather_states(mod_outputs, sequence_length,
649 sequence_length=None): argument
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Dstate_saving_rnn_estimator_test.py248 sequence_length = 4
263 1.0, shape=[sequence_length]),
268 labels = constant_op.constant(5.0, shape=[sequence_length])
383 sequence_length = 10
397 [sequence_length + 1], 0, 2, dtype=dtypes.int32, seed=seed)
398 labels = array_ops.slice(random_sequence, [0], [sequence_length])
400 array_ops.slice(random_sequence, [1], [sequence_length]))
447 sequence_length, argument
451 [sequence_length + 1], 0, 2, dtype=dtypes.int32, seed=seed)
452 labels = array_ops.slice(random_sequence, [0], [sequence_length])
[all …]
Ddynamic_rnn_estimator_test.py358 sequence_length = 16
363 def get_shift_input_fn(batch_size, sequence_length, seed=None): argument
367 [batch_size, sequence_length + 1],
373 [batch_size, sequence_length])
377 [batch_size, sequence_length])), 2)
402 train_input_fn = get_shift_input_fn(batch_size, sequence_length, seed=12321)
403 eval_input_fn = get_shift_input_fn(batch_size, sequence_length, seed=32123)
423 def get_input_fn(batch_size, sequence_length, state_dict, starting_step=0): argument
427 [[(starting_step + i + j) % 2 for j in range(sequence_length + 1)]
431 [batch_size, sequence_length])
[all …]
Drnn_common_test.py38 sequence_length = np.random.randint(0, padded_length + 1, batch_size)
45 constant_op.constant(sequence_length, dtype=dtypes.int32))
51 expected_activations_shape = [sum(sequence_length), num_classes]
57 expected_labels_shape = [sum(sequence_length)]
63 for j in range(sequence_length[i]):
89 sequence_length = np.random.randint(0, padded_length + 1, batch_size)
93 constant_op.constant(sequence_length, dtype=dtypes.int32))
106 expected_activations = activations[i, sequence_length[i] - 1, :]
Ddynamic_rnn_estimator.py256 sequence_length, argument
285 activations, sequence_length)
303 activations, labels, sequence_length, target_column, features): argument
321 activations, labels, sequence_length)
326 activations, labels, sequence_length, target_column, features): argument
345 activations, sequence_length)
477 sequence_length = features.get(sequence_length_key)
502 rnn_activations, labels, sequence_length, target_column, features)
505 rnn_activations, sequence_length, target_column,
509 rnn_activations, labels, sequence_length, target_column, features)
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Drnn_test.py123 sequence_length=[[4]])
185 cell, inputs, dtype=dtypes.float32, sequence_length=[4])
209 cell, inputs, dtype=dtypes.float32, sequence_length=[4])
231 def _static_vs_dynamic_rnn_benchmark_static(inputs_list_t, sequence_length): argument
242 sequence_length=sequence_length,
253 def _static_vs_dynamic_rnn_benchmark_dynamic(inputs_t, sequence_length): argument
262 cell, inputs_t, sequence_length=sequence_length, dtype=dtypes.float32)
282 sequence_length = np.random.randint(0, max_time, size=batch_size)
295 _static_vs_dynamic_rnn_benchmark_static(inputs_list_t, sequence_length)
300 _static_vs_dynamic_rnn_benchmark_dynamic(inputs_t, sequence_length)
[all …]
/external/tensorflow/tensorflow/contrib/lite/kernels/
Dunidirectional_sequence_lstm_test.cc36 int sequence_length, bool use_cifg, in UnidirectionalLSTMOpModel() argument
45 sequence_length_(sequence_length) { in UnidirectionalLSTMOpModel()
212 int sequence_length() { return sequence_length_; } in sequence_length() function in tflite::__anon99bbf5b60111::UnidirectionalLSTMOpModel
256 const int sequence_length = 3; in TEST() local
259 n_batch, n_input, n_cell, n_output, sequence_length, /*use_cifg=*/false, in TEST()
263 {sequence_length, n_batch, n_input}, // input tensor in TEST()
344 float* batch0_end = batch0_start + lstm.num_inputs() * lstm.sequence_length(); in TEST()
352 golden_start + lstm.num_outputs() * lstm.sequence_length(); in TEST()
364 const int sequence_length = 3; in TEST() local
367 n_batch, n_input, n_cell, n_output, sequence_length, /*use_cifg=*/true, in TEST()
[all …]
/external/tensorflow/tensorflow/core/ops/
Dctc_ops.cc41 ShapeHandle sequence_length; in __anon1f51ce4a0102() local
46 TF_RETURN_IF_ERROR(c->WithRank(c->input(3), 1, &sequence_length)); in __anon1f51ce4a0102()
56 c->Merge(c->Dim(inputs, 1), c->Dim(sequence_length, 0), &batch_size)); in __anon1f51ce4a0102()
74 ShapeHandle sequence_length; in __anon1f51ce4a0202() local
77 TF_RETURN_IF_ERROR(c->WithRank(c->input(1), 1, &sequence_length)); in __anon1f51ce4a0202()
82 c->Merge(c->Dim(inputs, 1), c->Dim(sequence_length, 0), &batch_size)); in __anon1f51ce4a0202()
104 ShapeHandle sequence_length; in __anon1f51ce4a0302() local
107 TF_RETURN_IF_ERROR(c->WithRank(c->input(1), 1, &sequence_length)); in __anon1f51ce4a0302()
112 c->Merge(c->Dim(inputs, 1), c->Dim(sequence_length, 0), &batch_size)); in __anon1f51ce4a0302()
/external/tensorflow/tensorflow/contrib/rnn/python/kernel_tests/
Drnn_test.py57 sequence_length = array_ops.placeholder(
87 sequence_length=sequence_length,
99 return input_value, inputs, outputs, state_fw, state_bw, sequence_length
103 input_value, inputs, outputs, state_fw, state_bw, sequence_length = (
110 sequence_length: [2, 3]})
176 input_value, inputs, outputs, state_fw, state_bw, sequence_length = (
183 feed_dict = {inputs[0]: input_value, sequence_length: [3, 2]}
194 feed_dict = {inputs[0]: input_value, sequence_length: [5, 3]}
204 feed_dict = {inputs[0]: input_value, sequence_length: [2, 1]}
237 sequence_length = array_ops.placeholder(dtypes.int64)
[all …]
Dcore_rnn_test.py156 rnn.static_rnn(cell, inputs, dtype=dtypes.float32, sequence_length=4)
220 sequence_length = array_ops.placeholder(dtypes.int64)
229 cell, inputs, sequence_length=sequence_length, dtype=dtypes.float32)
238 sequence_length: [2, 3]
244 sequence_length: [2, 3]
530 sequence_length = [4, 6]
554 sequence_length=sequence_length,
568 sequence_length=sequence_length,
728 sequence_length = array_ops.placeholder(dtypes.int64)
748 sequence_length=sequence_length,
[all …]
/external/v8/src/
Dlayout-descriptor.cc148 int sequence_length = CountTrailingZeros32(value) - layout_bit_index; in IsTagged() local
150 if (layout_bit_index + sequence_length == kNumberOfBits) { in IsTagged()
162 sequence_length += cur_sequence_length; in IsTagged()
163 if (sequence_length >= max_sequence_length) break; in IsTagged()
167 if (is_tagged && (field_index + sequence_length == capacity())) { in IsTagged()
171 sequence_length = std::numeric_limits<int>::max(); in IsTagged()
174 *out_sequence_length = Min(sequence_length, max_sequence_length); in IsTagged()
204 int sequence_length; in IsTagged() local
206 &sequence_length); in IsTagged()
207 DCHECK(sequence_length > 0); in IsTagged()
[all …]
Dcollector.h205 int sequence_length = this->index_ - sequence_start_; in DropSequence() local
207 this->size_ -= sequence_length; in DropSequence()
227 int sequence_length = this->index_ - sequence_start_; in NewChunk() local
228 Vector<T> new_chunk = Vector<T>::New(sequence_length + new_capacity); in NewChunk()
229 DCHECK(sequence_length < new_chunk.length()); in NewChunk()
230 for (int i = 0; i < sequence_length; i++) { in NewChunk()
239 this->index_ = sequence_length; in NewChunk()
/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dmodels.py212 sequence_length=None, argument
266 sequence_length)
272 _reverse_seq(inputs, sequence_length), initial_state_bw, dtype,
273 sequence_length)
274 output_bw = _reverse_seq(tmp, sequence_length)
287 target_predictor_fn, sequence_length, initial_state, argument
368 sequence_length=sequence_length,
391 sequence_length=sequence_length,
/external/tensorflow/tensorflow/contrib/seq2seq/python/kernel_tests/
Dloss_test.py41 sequence_length = 3
46 for i in range(sequence_length)
52 for i in range(sequence_length)
57 1.0, shape=[batch_size]) for i in range(sequence_length)
73 compare_per_sequence = np.ones((sequence_length)) * 1.60944
89 compare_total = np.ones((batch_size, sequence_length)) * 1.60944
Ddecoder_test.py40 sequence_length = [3, 4, 3, 1, 0]
45 max_out = max(sequence_length)
56 inputs, sequence_length, time_major=time_major)
118 sequence_length = [3, 4, 3, 1, 0]
123 max_out = max(sequence_length)
131 helper = helper_py.TrainingHelper(inputs, sequence_length)
149 sequence_length=sequence_length if use_sequence_length else None,
/external/tensorflow/tensorflow/contrib/eager/python/examples/rnn_colorbot/
Drnn_colorbot.py139 def call(self, chars, sequence_length, training=False): argument
180 indices = tf.stack([sequence_length - 1, batch_range], axis=1)
193 for (labels, chars, sequence_length) in tfe.Iterator(eval_data):
194 predictions = model(chars, sequence_length, training=False)
206 def model_loss(labels, chars, sequence_length): argument
207 predictions = model(chars, sequence_length, training=True)
212 for (batch, (labels, chars, sequence_length)) in enumerate(
216 sequence_length)
/external/tensorflow/tensorflow/contrib/crf/python/ops/
Dcrf.py143 sequence_length=sequence_lengths - 1,
444 def crf_decode(potentials, transition_params, sequence_length): argument
485 sequence_length=sequence_length - 1,
490 backpointers, sequence_length - 1, seq_dim=1)
500 sequence_length=sequence_length - 1,
508 decode_tags, sequence_length, seq_dim=1)
/external/eigen/unsupported/test/
Dcxx11_tensor_ifft.cpp18 static void test_1D_fft_ifft_invariant(int sequence_length) { in test_1D_fft_ifft_invariant() argument
19 Tensor<double, 1, DataLayout> tensor(sequence_length); in test_1D_fft_ifft_invariant()
31 VERIFY_IS_EQUAL(tensor_after_fft.dimension(0), sequence_length); in test_1D_fft_ifft_invariant()
32 VERIFY_IS_EQUAL(tensor_after_fft_ifft.dimension(0), sequence_length); in test_1D_fft_ifft_invariant()
34 for (int i = 0; i < sequence_length; ++i) { in test_1D_fft_ifft_invariant()
/external/tensorflow/tensorflow/contrib/seq2seq/python/ops/
Dhelper.py172 def __init__(self, inputs, sequence_length, time_major=False, name=None): argument
185 with ops.name_scope(name, "TrainingHelper", [inputs, sequence_length]):
193 sequence_length, name="sequence_length")
202 self._batch_size = array_ops.size(sequence_length)
209 def sequence_length(self): member in TrainingHelper
261 def __init__(self, inputs, sequence_length, embedding, sampling_probability, argument
299 sequence_length=sequence_length,
361 def __init__(self, inputs, sequence_length, sampling_probability, argument
418 sequence_length=sequence_length,
/external/tensorflow/tensorflow/contrib/eager/python/examples/spinn/
Dspinn_test.py43 def _generate_synthetic_snli_data_batch(sequence_length, argument
50 (sequence_length, batch_size), maxval=vocab_size, dtype=tf.int64)
56 (sequence_length, batch_size), maxval=vocab_size, dtype=tf.int64)
244 sequence_length = 15
254 buffers = tf.random_normal((sequence_length, 1, config.d_proj))
271 sequence_length = 15
283 hypo_trans) = _generate_synthetic_snli_data_batch(sequence_length,
442 sequence_length = 15
453 hypo_trans) = _generate_synthetic_snli_data_batch(sequence_length,
/external/tensorflow/tensorflow/contrib/eager/python/examples/rnn_ptb/
Drnn_ptb_test.py39 sequence_length = 35
40 data = np.ones([4 * sequence_length, 20], dtype=np.int64)
44 rnn_ptb.train(model, optimizer, data, sequence_length, 0.25)
45 rnn_ptb.train(model, optimizer, data, sequence_length, 0.25)

123