Home
last modified time | relevance | path

Searched refs:collections (Results 1 – 25 of 1797) sorted by relevance

12345678910>>...72

/external/python/cpython3/Lib/test/
Dtest_userdict.py5 import collections
15 type2test = collections.UserDict
19 u = collections.UserDict()
20 u0 = collections.UserDict(d0)
21 u1 = collections.UserDict(d1)
22 u2 = collections.UserDict(d2)
24 uu = collections.UserDict(u)
25 uu0 = collections.UserDict(u0)
26 uu1 = collections.UserDict(u1)
27 uu2 = collections.UserDict(u2)
[all …]
Dtest_pprint.py3 import collections
304 d = collections.OrderedDict()
306 d = collections.OrderedDict([])
309 d = collections.OrderedDict(zip(words, itertools.count()))
336 d = collections.OrderedDict(zip(words, itertools.count()))
916 d = collections.defaultdict(int)
919 d = collections.defaultdict(int, zip(words, itertools.count()))
934 d = collections.Counter()
936 d = collections.Counter('senselessness')
945 d = collections.ChainMap()
[all …]
Dtest_dictviews.py1 import collections.abc
313 self.assertIsInstance(d.keys(), collections.abc.KeysView)
314 self.assertIsInstance(d.keys(), collections.abc.MappingView)
315 self.assertIsInstance(d.keys(), collections.abc.Set)
316 self.assertIsInstance(d.keys(), collections.abc.Sized)
317 self.assertIsInstance(d.keys(), collections.abc.Iterable)
318 self.assertIsInstance(d.keys(), collections.abc.Container)
320 self.assertIsInstance(d.values(), collections.abc.ValuesView)
321 self.assertIsInstance(d.values(), collections.abc.MappingView)
322 self.assertIsInstance(d.values(), collections.abc.Sized)
[all …]
/external/tensorflow/tensorflow/python/summary/
Dsummary.py58 def scalar(name, tensor, collections=None, family=None): argument
83 _summary_op_util.collect(val, collections, [_ops.GraphKeys.SUMMARIES])
88 def image(name, tensor, max_outputs=3, collections=None, family=None): argument
139 _summary_op_util.collect(val, collections, [_ops.GraphKeys.SUMMARIES])
144 def histogram(name, values, collections=None, family=None): argument
180 _summary_op_util.collect(val, collections, [_ops.GraphKeys.SUMMARIES])
185 def audio(name, tensor, sample_rate, max_outputs=3, collections=None, argument
229 _summary_op_util.collect(val, collections, [_ops.GraphKeys.SUMMARIES])
234 def text(name, tensor, collections=None): argument
270 collections=collections)
[all …]
/external/rust/crates/intrusive-collections/
DREADME.md1 intrusive-collections
4 …](https://img.shields.io/crates/v/intrusive-collections.svg)](https://crates.io/crates/intrusive-c…
6 A Rust library for creating intrusive collections. Currently supports singly-linked and doubly-link…
11 - Intrusive collections don't require any dynamic memory allocation since they simply keep track of…
12 - You can safely manipulate intrusive collections without any unsafe code.
13 - A single object can be a member of multiple intrusive collections simultaneously.
14 - Intrusive collections provide a `Cursor`-based interface, which allows safe mutation while iterat…
16 …ormation, see the documentation ([crates.io](https://docs.rs/intrusive-collections), [master](http…
24 intrusive-collections = "0.9"
29 - `nightly`: Enables nightly-only features: `const fn` constructors for collections (`Link` constru…
DMETADATA1 name: "intrusive-collections"
2 description: "Intrusive collections for Rust (linked list and red-black tree)"
6 value: "https://crates.io/crates/intrusive-collections"
10 value: "https://static.crates.io/crates/intrusive-collections/intrusive-collections-0.9.0.crate"
/external/tensorflow/tensorflow/python/ops/
Dlogging_ops.py21 import collections as py_collections
391 def _Collect(val, collections, default_collections): argument
392 if collections is None:
393 collections = default_collections
394 for key in collections:
403 def histogram_summary(tag, values, collections=None, name=None): argument
433 _Collect(val, collections, [ops.GraphKeys.SUMMARIES])
443 def image_summary(tag, tensor, max_images=3, collections=None, name=None): argument
495 _Collect(val, collections, [ops.GraphKeys.SUMMARIES])
508 collections=None, argument
[all …]
Dvariable_scope.py318 collections=None, argument
467 collections=None, argument
492 collections=collections,
513 collections=collections,
537 collections=collections,
561 "collections": collections,
584 collections=collections,
602 collections=None, argument
795 collections=collections,
829 collections=None, argument
[all …]
Dsummary_op_util.py28 def collect(val, collections, default_collections): argument
36 if collections is None:
37 collections = default_collections
38 for key in collections:
/external/python/cpython3/Parser/pgen/
Dgrammar.py1 import collections
46 self.symbol2number = collections.OrderedDict()
47 self.number2symbol = collections.OrderedDict()
49 self.dfas = collections.OrderedDict()
51 self.keywords = collections.OrderedDict()
52 self.tokens = collections.OrderedDict()
53 self.symbol2label = collections.OrderedDict()
/external/python/cpython2/Lib/test/
Dtest_dictviews.py5 import collections
192 self.assertIsInstance(d.viewkeys(), collections.KeysView)
193 self.assertIsInstance(d.viewkeys(), collections.MappingView)
194 self.assertIsInstance(d.viewkeys(), collections.Set)
195 self.assertIsInstance(d.viewkeys(), collections.Sized)
196 self.assertIsInstance(d.viewkeys(), collections.Iterable)
197 self.assertIsInstance(d.viewkeys(), collections.Container)
199 self.assertIsInstance(d.viewvalues(), collections.ValuesView)
200 self.assertIsInstance(d.viewvalues(), collections.MappingView)
201 self.assertIsInstance(d.viewvalues(), collections.Sized)
[all …]
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.summary.pbtxt37 …argspec: "args=[\'name\', \'tensor\', \'sample_rate\', \'max_outputs\', \'collections\', \'family\…
45 …argspec: "args=[\'name\', \'values\', \'collections\', \'family\'], varargs=None, keywords=None, d…
49 …argspec: "args=[\'name\', \'tensor\', \'max_outputs\', \'collections\', \'family\'], varargs=None,…
57 …argspec: "args=[\'inputs\', \'collections\', \'name\'], varargs=None, keywords=None, defaults=[\'N…
65 …argspec: "args=[\'name\', \'tensor\', \'collections\', \'family\'], varargs=None, keywords=None, d…
69 …argspec: "args=[\'name\', \'tensor\', \'summary_description\', \'collections\', \'summary_metadata…
73 …argspec: "args=[\'name\', \'tensor\', \'collections\'], varargs=None, keywords=None, defaults=[\'N…
/external/tensorflow/tensorflow/python/util/
Dnest_test.py21 import collections
63 class _CustomSequenceThatRaisesException(collections.Sequence):
74 PointXY = collections.namedtuple("Point", ["x", "y"]) # pylint: disable=invalid-name
165 @parameterized.parameters({"mapping_type": collections.OrderedDict},
177 @parameterized.parameters({"mapping_type": collections.OrderedDict},
196 ordered = collections.OrderedDict([("d", 3), ("b", 1), ("a", 0), ("c", 2)])
210 Abc = collections.namedtuple("A", ("b", "c")) # pylint: disable=invalid-name
223 collections.OrderedDict([
244 collections.OrderedDict([
259 self.assertIsInstance(unflattened_ordered_dict, collections.OrderedDict)
[all …]
/external/toolchain-utils/cros_utils/
Dtiny_render.py56 import collections
60 Bold = collections.namedtuple('Bold', ['inner'])
61 LineBreak = collections.namedtuple('LineBreak', [])
62 Link = collections.namedtuple('Link', ['href', 'inner'])
63 UnorderedList = collections.namedtuple('UnorderedList', ['items'])
65 Switch = collections.namedtuple('Switch', ['text', 'html'])
/external/pigweed/pw_bloat/py/pw_bloat/
Dbinary_diff.py16 import collections
21 DiffSegment = collections.namedtuple(
23 FormattedDiff = collections.namedtuple('FormattedDiff',
43 self._segments: collections.OrderedDict = collections.OrderedDict()
/external/tensorflow/tensorflow/python/framework/
Dpython_memory_checker.py24 import collections
47 result = collections.defaultdict(set)
54 result = collections.Counter()
60 result += collections.Counter()
97 allocation_counter = collections.Counter()
124 count_diff.subtract(collections.Counter(threshold))
/external/tensorflow/tensorflow/python/tpu/
Dtpu_embedding_gradient.py21 import collections
48 feature_to_gradient_dict = collections.OrderedDict(
71 dummy_table_variables = collections.OrderedDict()
86 collections=['tpu_embedding_dummy_table_variables']))
118 new_activations = collections.OrderedDict()
143 feature_to_gradient_dict = collections.OrderedDict()
Dtpu_embedding.py21 import collections
54 collections.namedtuple('TableConfig', [
152 collections.namedtuple('FeatureConfig',
183 collections.namedtuple(
225 collections.namedtuple(
283 enqueue_datas = collections.OrderedDict(
307 enqueue_datas = collections.OrderedDict(
314 AdamSlotVariableNames = collections.namedtuple('AdamSlotVariableNames',
317 AdagradSlotVariableName = collections.namedtuple('AdagradSlotVariableName',
320 MomentumSlotVariableName = collections.namedtuple('MomentumSlotVariableName',
[all …]
/external/autotest/utils/
Dlabellib.py18 import collections
31 class LabelsMapping(collections.MutableMapping):
53 self._keyval_map = collections.OrderedDict()
98 KeyvalLabel = collections.namedtuple('KeyvalLabel', 'key, value')
115 CrosVersion = collections.namedtuple(
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_integration_test.py21 import collections
61 (keras.layers.Dense, (1,), (False,), collections.OrderedDict([
63 (keras.layers.Activation, (2, 2), (True, True), collections.OrderedDict([
65 (keras.layers.Dropout, (16,), (False,), collections.OrderedDict([
68 collections.OrderedDict([
73 (keras.layers.Conv1D, (8, 8), (False, False), collections.OrderedDict([
83 collections.OrderedDict([
93 (keras.layers.LSTM, (4, 4), (False, False), collections.OrderedDict([
/external/tensorflow/tensorflow/python/data/util/
Dnest_test.py21 import collections
43 point = collections.namedtuple("Point", ["x", "y"])
72 ordered = collections.OrderedDict([("d", 3), ("b", 1), ("a", 0), ("c", 2)])
81 ordered = collections.OrderedDict([("d", 0), ("b", 0), ("a", 0), ("c", 0)])
87 collections.OrderedDict([("d", 3), ("b", 1), ("a", 0), ("c", 2)]),
93 named_tuple = collections.namedtuple("A", ("b", "c"))
100 collections.OrderedDict([
119 collections.OrderedDict([
134 self.assertIsInstance(unflattened_ordered_dict, collections.OrderedDict)
210 named_type_0 = collections.namedtuple("named_0", ("a", "b"))
[all …]
/external/python/cpython3/Doc/library/
Dtyping.rst53 from collections.abc import Sequence
159 from collections.abc import Callable
183 from collections.abc import Mapping, Sequence
193 from collections.abc import Sequence
238 from collections.abc import Iterable
269 from collections.abc import Sized
279 from collections.abc import Mapping
293 from collections.abc import Iterable
299 from collections.abc import Iterable
409 :class:`~collections.abc.Iterable`. The problem with this approach is that a class had
[all …]
/external/python/cpython3/Lib/
Dtyping.py21 import collections
22 import collections.abc
1181 if (isinstance(annotations, collections.abc.Mapping) and
1505 if tp.__origin__ is collections.abc.Callable and res[0] is not Ellipsis:
1639 Hashable = _alias(collections.abc.Hashable, 0) # Not generic.
1640 Awaitable = _alias(collections.abc.Awaitable, 1)
1641 Coroutine = _alias(collections.abc.Coroutine, 3)
1642 AsyncIterable = _alias(collections.abc.AsyncIterable, 1)
1643 AsyncIterator = _alias(collections.abc.AsyncIterator, 1)
1644 Iterable = _alias(collections.abc.Iterable, 1)
[all …]
/external/grpc-grpc/src/python/grpcio/grpc/framework/interfaces/base/
Dutilities.py16 import collections
22 collections.namedtuple('_Completion', (
31 collections.namedtuple('_Subscription', (
/external/libchrome/libchrome_tools/uprev/
Dutils.py7 import collections
21 GitFile = collections.namedtuple(
26 GitDiffTree = collections.namedtuple(
31 GitBlameLine = collections.namedtuple(
153 return collections.defaultdict(recursive_default_dict)
163 assert type(cwd) == collections.defaultdict
172 if isinstance(val, collections.defaultdict):

12345678910>>...72