Searched refs:is_sequence (Results 1 – 23 of 23) sorted by relevance
/external/tensorflow/tensorflow/python/data/util/ |
D | nest.py | 100 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):
|
D | nest_test.py | 148 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/ |
D | nest.py | 180 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/ |
D | training_generator.py | 143 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:
|
D | network.py | 1110 if not nest.is_sequence(model_inputs): 1126 if not nest.is_sequence(model_outputs):
|
/external/tensorflow/tensorflow/python/feature_column/ |
D | utils.py | 106 if nest.is_sequence(default_value): 135 if not nest.is_sequence(value): 145 if nest.is_sequence(default_value) != bool(shape):
|
D | feature_column.py | 2637 if not nest.is_sequence(shape):
|
D | feature_column_v2.py | 3398 if not nest.is_sequence(shape):
|
/external/tensorflow/tensorflow/contrib/legacy_seq2seq/python/ops/ |
D | seq2seq.py | 394 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/ |
D | core_rnn_cell.py | 72 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):
|
D | rnn_cell.py | 1156 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/ |
D | rnn.py | 116 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):
|
D | map_fn.py | 172 input_is_sequence = nest.is_sequence(elems) 182 output_is_sequence = nest.is_sequence(dtype)
|
D | functional_ops.py | 362 input_is_sequence = nest.is_sequence(elems) 372 output_is_sequence = nest.is_sequence(initializer)
|
D | rnn_cell_impl.py | 1615 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):
|
D | while_v2.py | 153 if not nest.is_sequence(outputs):
|
/external/tensorflow/tensorflow/python/keras/layers/ |
D | recurrent.py | 126 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/ |
D | tf_utils.py | 165 if not nest.is_sequence(nested):
|
/external/tensorflow/tensorflow/python/ops/ragged/ |
D | ragged_map_ops.py | 192 input_is_sequence = nest.is_sequence(elems)
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/ |
D | dataset_serialization_test_base.py | 576 if nest.is_sequence(expected):
|
/external/tensorflow/tensorflow/contrib/recurrent/python/ops/ |
D | recurrent.py | 151 if not nest.is_sequence(elements):
|
/external/tensorflow/tensorflow/python/framework/ |
D | ops.py | 2029 is_sequence = True 2032 is_sequence = True 2035 is_sequence = False 2037 if is_sequence:
|
/external/tensorflow/tensorflow/python/keras/ |
D | backend.py | 3399 assert not nest.is_sequence(mask_t) 3400 assert not nest.is_sequence(input_t) 3425 if nest.is_sequence(inputs):
|