Searched refs:is_sequence (Results 1 – 19 of 19) sorted by relevance
/external/tensorflow/tensorflow/python/data/util/ |
D | nest.py | 71 is_sequence = _pywrap_utils.IsSequenceForData variable 120 if is_sequence(s): 148 if not (is_sequence(flat_sequence) or isinstance(flat_sequence, list)): 151 if not is_sequence(structure): 223 if is_sequence(shallow_tree): 268 if is_sequence(shallow_tree): 269 if not is_sequence(input_tree):
|
D | nest_test.py | 160 self.assertFalse(nest.is_sequence("1234")) 161 self.assertFalse(nest.is_sequence([1, 3, [4, 5]])) 162 self.assertTrue(nest.is_sequence(((7, 8), (5, 6)))) 163 self.assertFalse(nest.is_sequence([])) 164 self.assertFalse(nest.is_sequence(set([1, 2]))) 166 self.assertFalse(nest.is_sequence(ones)) 167 self.assertFalse(nest.is_sequence(math_ops.tanh(ones))) 168 self.assertFalse(nest.is_sequence(np.ones((4, 5)))) 169 self.assertTrue(nest.is_sequence({"foo": 1, "bar": 2})) 171 nest.is_sequence(sparse_tensor.SparseTensorValue([[0]], [0], [1]))) [all …]
|
/external/tensorflow/tensorflow/python/util/ |
D | nest.py | 267 is_sequence = _pywrap_utils.IsSequence variable 316 return is_sequence(seq) 607 is_seq = is_sequence_or_composite if expand_composites else is_sequence 1025 is_seq = is_sequence_or_composite if expand_composites else is_sequence 1186 is_seq = is_sequence_or_composite if expand_composites else is_sequence 1291 is_seq = is_sequence_or_composite if expand_composites else is_sequence 1453 is_seq = is_sequence_or_composite if expand_composites else is_sequence 1511 is_seq = is_sequence_or_composite if expand_composites else is_sequence 1587 is_seq = is_sequence_or_composite if expand_composites else is_sequence
|
D | util.cc | 585 int is_sequence = IsSequenceHelper(o); in IsSequenceOrCompositeHelper() local 588 if ((is_sequence == -1) || (is_composite == -1) || (is_type_spec == -1)) { in IsSequenceOrCompositeHelper() 591 return is_sequence || is_composite || is_type_spec; in IsSequenceOrCompositeHelper()
|
/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 | 2756 if not nest.is_sequence(shape):
|
D | feature_column_v2.py | 3287 if not nest.is_sequence(shape):
|
/external/tensorflow/tensorflow/python/keras/engine/ |
D | training_generator_v1.py | 148 is_sequence = isinstance(generator, data_utils.Sequence) 149 _validate_arguments(is_sequence, is_dataset, use_multiprocessing, workers, 368 def _validate_arguments(is_sequence, is_dataset, use_multiprocessing, workers, argument 401 if not is_sequence and use_multiprocessing and workers > 1: 496 is_sequence = isinstance(generator, data_utils.Sequence) 499 if is_sequence: 508 if is_sequence:
|
/external/webrtc/api/stats/ |
D | rtc_stats.h | 246 virtual bool is_sequence() const = 0; 305 bool is_sequence() const override; 370 RTC_EXPORT bool RTCStatsMember<T>::is_sequence() const; \
|
/external/tensorflow/tensorflow/python/framework/ |
D | composite_tensor.py | 112 elif not nest.is_sequence(structure):
|
D | ops.py | 6938 is_sequence = True 6941 is_sequence = True 6944 is_sequence = False 6946 if is_sequence:
|
/external/tensorflow/tensorflow/python/ops/ |
D | rnn.py | 113 elif nest.is_sequence(state): 1311 if not nest.is_sequence(inputs): 1327 while nest.is_sequence(first_input): 1457 state_is_tuple = nest.is_sequence(state_size) 1458 state_name_tuple = nest.is_sequence(state_name) 1571 if not nest.is_sequence(inputs):
|
D | functional_ops.py | 546 input_is_sequence = nest.is_sequence(elems) 557 output_is_sequence = nest.is_sequence(initializer)
|
/external/webrtc/stats/ |
D | rtc_stats.cc | 139 bool RTCStatsMember<T>::is_sequence() const { \
|
/external/tensorflow/tensorflow/python/keras/ |
D | callbacks_test.py | 197 is_sequence = isinstance(x, keras.utils.data_utils.Sequence) 204 batch_size=2 if not is_sequence else None, 205 steps=5 if is_sequence else None, 219 is_sequence = isinstance(x, keras.utils.data_utils.Sequence) 225 batch_size=2 if not is_sequence else None, 226 steps=5 if is_sequence else None,
|
/external/tensorflow/tensorflow/python/data/experimental/kernel_tests/serialization/ |
D | dataset_serialization_test_base.py | 403 if nest.is_sequence(expected):
|
/external/tensorflow/tensorflow/python/data/ops/ |
D | dataset_ops.py | 4243 if nest.is_sequence(input_shapes) and not nest.is_sequence(padding_values):
|
/external/tensorflow/tensorflow/python/eager/ |
D | function.py | 2260 elif nest.is_sequence(spec):
|
D | function_test.py | 117 if nest.is_sequence(value):
|