Home
last modified time | relevance | path

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

123

/external/protobuf/python/google/protobuf/internal/
D_parameterized.py161 import collections.abc as collections_abc namespace
164 import collections as collections_abc namespace
183 return (isinstance(obj, collections_abc.Iterable) and not
188 if isinstance(testcase_params, collections_abc.Mapping):
231 if isinstance(testcase_params, collections_abc.Mapping):
300 list(testcases) if not isinstance(testcases, collections_abc.Sequence)
Dcontainers.py47 import collections.abc as collections_abc namespace
49 import collections as collections_abc namespace
113 if not isinstance(other, collections_abc.Mapping):
180 collections_abc.Mapping.register(Mapping)
181 collections_abc.MutableMapping.register(MutableMapping)
186 MutableMapping = collections_abc.MutableMapping
233 collections_abc.MutableSequence.register(BaseContainer)
Dwell_known_types.py50 import collections.abc as collections_abc namespace
53 import collections as collections_abc namespace
803 collections_abc.MutableMapping.register(Struct)
849 collections_abc.MutableSequence.register(ListValue)
/external/tensorflow/tensorflow/python/saved_model/
Dsignature_serialization.py34 from tensorflow.python.util.compat import collections_abc
123 if not isinstance(signatures, collections_abc.Mapping):
199 if not isinstance(outputs, collections_abc.Mapping):
200 if not isinstance(outputs, collections_abc.Sequence):
231 class _SignatureMap(collections_abc.Mapping, base.Trackable):
285 assert isinstance(func.structured_outputs, collections_abc.Mapping)
/external/python/uritemplates/uritemplate/
Dorderedset.py6 import collections.abc as collections_abc namespace
8 import collections as collections_abc namespace
15 class OrderedSet(collections_abc.MutableSet):
Dvariable.py21 import collections.abc as collections_abc namespace
23 import collections as collections_abc namespace
365 return isinstance(value, (dict, collections_abc.MutableMapping))
/external/tensorflow/tensorflow/python/compiler/xla/
Dxla.py39 from tensorflow.python.util.compat import collections_abc
337 if not isinstance(inputs, collections_abc.Sequence):
436 if isinstance(outputs, collections_abc.Sequence):
438 if (isinstance(o, collections_abc.Sequence) or
439 isinstance(o, collections_abc.Mapping) or
444 if isinstance(outputs, collections_abc.Mapping):
475 if not isinstance(outputs, collections_abc.Sequence):
/external/tensorflow/tensorflow/python/util/
Dserialization.py26 from tensorflow.python.util.compat import collections_abc
70 if isinstance(obj, collections_abc.Mapping):
Dobject_identity.py22 from tensorflow.python.util.compat import collections_abc
122 class ObjectIdentityDictionary(collections_abc.MutableMapping):
180 class ObjectIdentitySet(collections_abc.MutableSet):
Dcompat.py59 import collections.abc as collections_abc # pylint: disable=unused-import namespace
61 import collections as collections_abc # pylint: disable=unused-import namespace
/external/tensorflow/tensorflow/python/saved_model/model_utils/
Dmode_keys.py22 from tensorflow.python.util.compat import collections_abc
68 class ModeKeyMap(collections_abc.Mapping):
/external/tensorflow/tensorflow/python/keras/utils/
Dobject_identity.py20 import collections.abc as collections_abc namespace
121 class ObjectIdentityDictionary(collections_abc.MutableMapping):
179 class ObjectIdentitySet(collections_abc.MutableSet):
/external/tensorflow/tensorflow/lite/python/
Dtflite_keras_util.py33 from tensorflow.python.util.compat import collections_abc
85 collections_abc.Sequence) and len(input_specs) == 1:
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Djson_utils.py28 import collections.abc as collections_abc namespace
125 if isinstance(obj, collections_abc.Mapping):
/external/tensorflow/tensorflow/python/data/experimental/ops/
Dscan_ops.py25 from tensorflow.python.util.compat import collections_abc
57 if not (isinstance(wrapped_func.output_types, collections_abc.Sequence)
/external/tensorflow/tensorflow/python/ops/
Dclip_ops.py32 from tensorflow.python.util.compat import collections_abc
262 if (not isinstance(t_list, collections_abc.Sequence) or
340 if (not isinstance(t_list, collections_abc.Sequence) or
/external/tensorflow/tensorflow/python/util/protobuf/
Dcompare.py74 from ..compat import collections_abc
190 return isinstance(value, collections_abc.Mapping)
/external/tensorflow/tensorflow/python/data/util/
Dstructure.py37 from tensorflow.python.util.compat import collections_abc
441 if isinstance(element, collections_abc.Mapping):
457 element._fields, collections_abc.Sequence) and all(
/external/tensorflow/tensorflow/python/keras/layers/preprocessing/
Dpreprocessing_test_utils.py21 import collections.abc as collections_abc namespace
40 elif isinstance(a, collections_abc.Mapping):
/external/tensorflow/tensorflow/python/keras/
Dkeras_parameterized.py21 import collections.abc as collections_abc namespace
463 if isinstance(obj, collections_abc.Iterable):
/external/tensorflow/tensorflow/python/keras/saving/
Dsaving_utils.py20 import collections.abc as collections_abc namespace
85 collections_abc.Sequence) and len(input_specs) == 1:
/external/tensorflow/tensorflow/python/framework/
Dtype_spec.py36 from tensorflow.python.util.compat import collections_abc
413 isinstance(t._fields, collections_abc.Sequence) and
452 b._fields, collections_abc.Sequence) or a._fields != b._fields:
Dindexed_slices.py35 from tensorflow.python.util.compat import collections_abc
360 if not isinstance(values, collections_abc.Iterable):
/external/tensorflow/tensorflow/python/training/tracking/
Ddata_structures.py39 from tensorflow.python.util.compat import collections_abc
308 class List(TrackableDataStructure, collections_abc.Sequence):
432 collections_abc.MutableSequence,
690 class Mapping(TrackableDataStructure, collections_abc.Mapping):
773 if not isinstance(wrapped_dict, collections_abc.Mapping):
/external/tensorflow/tensorflow/python/kernel_tests/
Dconv_ops_3d_test.py34 from tensorflow.python.util.compat import collections_abc
85 if isinstance(stride, collections_abc.Iterable):
139 if isinstance(stride, collections_abc.Iterable):
475 if isinstance(stride, collections_abc.Iterable):

123