Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/data/util/
Dnest.py71 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):
Dnest_test.py160 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/
Dnest.py267 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
Dutil.cc585 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/
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.py2756 if not nest.is_sequence(shape):
Dfeature_column_v2.py3287 if not nest.is_sequence(shape):
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_generator_v1.py148 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/
Drtc_stats.h246 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/
Dcomposite_tensor.py112 elif not nest.is_sequence(structure):
Dops.py6938 is_sequence = True
6941 is_sequence = True
6944 is_sequence = False
6946 if is_sequence:
/external/tensorflow/tensorflow/python/ops/
Drnn.py113 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):
Dfunctional_ops.py546 input_is_sequence = nest.is_sequence(elems)
557 output_is_sequence = nest.is_sequence(initializer)
/external/webrtc/stats/
Drtc_stats.cc139 bool RTCStatsMember<T>::is_sequence() const { \
/external/tensorflow/tensorflow/python/keras/
Dcallbacks_test.py197 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/
Ddataset_serialization_test_base.py403 if nest.is_sequence(expected):
/external/tensorflow/tensorflow/python/data/ops/
Ddataset_ops.py4243 if nest.is_sequence(input_shapes) and not nest.is_sequence(padding_values):
/external/tensorflow/tensorflow/python/eager/
Dfunction.py2260 elif nest.is_sequence(spec):
Dfunction_test.py117 if nest.is_sequence(value):