Home
last modified time | relevance | path

Searched refs:is_sequence (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/python/data/util/
Dnest.py100 is_sequence = _pywrap_tensorflow.IsSequenceForData variable
149 if is_sequence(s):
177 if not (is_sequence(flat_sequence) or isinstance(flat_sequence, list)):
180 if not is_sequence(structure):
252 if is_sequence(shallow_tree):
297 if is_sequence(shallow_tree):
298 if not is_sequence(input_tree):
Dnest_test.py148 self.assertFalse(nest.is_sequence("1234"))
149 self.assertFalse(nest.is_sequence([1, 3, [4, 5]]))
150 self.assertTrue(nest.is_sequence(((7, 8), (5, 6))))
151 self.assertFalse(nest.is_sequence([]))
152 self.assertFalse(nest.is_sequence(set([1, 2])))
154 self.assertFalse(nest.is_sequence(ones))
155 self.assertFalse(nest.is_sequence(math_ops.tanh(ones)))
156 self.assertFalse(nest.is_sequence(np.ones((4, 5))))
157 self.assertTrue(nest.is_sequence({"foo": 1, "bar": 2}))
159 nest.is_sequence(sparse_tensor.SparseTensorValue([[0]], [0], [1])))
/external/tensorflow/tensorflow/python/util/
Dnest.py180 is_sequence = _pywrap_tensorflow.IsSequence variable
198 return is_sequence(seq)
332 if not is_sequence(i):
419 is_seq = is_sequence_or_composite if expand_composites else is_sequence
662 if is_sequence(shallow_tree):
663 if not is_sequence(input_tree):
1065 if not is_sequence(structure):
1080 elif not is_sequence(to_traverse):
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_generator.py143 is_sequence = isinstance(generator, data_utils.Sequence)
144 _validate_arguments(is_sequence, is_dataset, use_multiprocessing, workers,
374 def _validate_arguments(is_sequence, is_dataset, use_multiprocessing, workers, argument
407 if not is_sequence and use_multiprocessing and workers > 1:
502 is_sequence = isinstance(generator, data_utils.Sequence)
505 if is_sequence:
514 if is_sequence:
Dnetwork.py1110 if not nest.is_sequence(model_inputs):
1126 if not nest.is_sequence(model_outputs):
/external/tensorflow/tensorflow/python/feature_column/
Dutils.py106 if nest.is_sequence(default_value):
135 if not nest.is_sequence(value):
145 if nest.is_sequence(default_value) != bool(shape):
Dfeature_column.py2637 if not nest.is_sequence(shape):
Dfeature_column_v2.py3398 if not nest.is_sequence(shape):
/external/tensorflow/tensorflow/contrib/legacy_seq2seq/python/ops/
Dseq2seq.py394 if nest.is_sequence(state):
404 if nest.is_sequence(encoder_state):
515 if nest.is_sequence(state):
533 if nest.is_sequence(zero_state):
641 if nest.is_sequence(query): # If the query is a tuple, flatten it.
910 if nest.is_sequence(state):
920 if nest.is_sequence(encoder_state):
1036 if nest.is_sequence(state):
1048 if nest.is_sequence(encoder_state):
/external/tensorflow/tensorflow/contrib/rnn/python/ops/
Dcore_rnn_cell.py72 if args is None or (nest.is_sequence(args) and not args):
74 if not nest.is_sequence(args):
148 if args is None or (nest.is_sequence(args) and not args):
150 if not nest.is_sequence(args):
Drnn_cell.py1156 if nest.is_sequence(cell.state_size) and not state_is_tuple:
2597 if args is None or (nest.is_sequence(args) and not args):
2599 if not nest.is_sequence(args):
2947 if args is None or (nest.is_sequence(args) and not args):
2949 if not nest.is_sequence(args):
/external/tensorflow/tensorflow/python/ops/
Drnn.py116 elif nest.is_sequence(state):
831 if is_keras_rnn_cell and not nest.is_sequence(state):
1289 if not nest.is_sequence(inputs):
1305 while nest.is_sequence(first_input):
1376 if is_keras_rnn_cell and not nest.is_sequence(state):
1438 state_is_tuple = nest.is_sequence(state_size)
1439 state_name_tuple = nest.is_sequence(state_name)
1551 if not nest.is_sequence(inputs):
Dmap_fn.py172 input_is_sequence = nest.is_sequence(elems)
182 output_is_sequence = nest.is_sequence(dtype)
Dfunctional_ops.py362 input_is_sequence = nest.is_sequence(elems)
372 output_is_sequence = nest.is_sequence(initializer)
Drnn_cell_impl.py1615 if not nest.is_sequence(cells):
1633 if any(nest.is_sequence(c.state_size) for c in self._cells):
1690 if not nest.is_sequence(state):
Dwhile_v2.py153 if not nest.is_sequence(outputs):
/external/tensorflow/tensorflow/python/keras/layers/
Drecurrent.py126 states = states if nest.is_sequence(states) else [states]
417 return state if nest.is_sequence(self.cell.state_size) else [state]
535 if not nest.is_sequence(input_shape):
607 if nest.is_sequence(inputs):
622 if not nest.is_sequence(init_state):
706 if nest.is_sequence(inputs):
742 if not nest.is_sequence(new_states):
750 if not nest.is_sequence(new_states):
2767 if nest.is_sequence(state_size):
/external/tensorflow/tensorflow/python/keras/utils/
Dtf_utils.py165 if not nest.is_sequence(nested):
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_map_ops.py192 input_is_sequence = nest.is_sequence(elems)
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/
Ddataset_serialization_test_base.py576 if nest.is_sequence(expected):
/external/tensorflow/tensorflow/contrib/recurrent/python/ops/
Drecurrent.py151 if not nest.is_sequence(elements):
/external/tensorflow/tensorflow/python/framework/
Dops.py2029 is_sequence = True
2032 is_sequence = True
2035 is_sequence = False
2037 if is_sequence:
/external/tensorflow/tensorflow/python/keras/
Dbackend.py3399 assert not nest.is_sequence(mask_t)
3400 assert not nest.is_sequence(input_t)
3425 if nest.is_sequence(inputs):