/external/python/cpython2/Modules/ |
D | future_builtins.c | 84 PyObject *m, *itertools, *iter_func; in initfuture_builtins() local 92 itertools = PyImport_ImportModuleNoBlock("itertools"); in initfuture_builtins() 93 if (itertools == NULL) in initfuture_builtins() 98 iter_func = PyObject_GetAttrString(itertools, *cur_func); in initfuture_builtins() 103 Py_DECREF(itertools); in initfuture_builtins()
|
/external/python/cpython3/Doc/howto/ |
D | functional.rst | 12 :mod:`itertools` and :mod:`functools`. 735 The itertools module 738 The :mod:`itertools` module contains a number of commonly-used iterators as well 752 :func:`itertools.count(start, step) <itertools.count>` returns an infinite 756 itertools.count() => 758 itertools.count(10) => 760 itertools.count(10, 5) => 763 :func:`itertools.cycle(iter) <itertools.cycle>` saves a copy of the contents of 767 itertools.cycle([1, 2, 3, 4, 5]) => 770 :func:`itertools.repeat(elem, [n]) <itertools.repeat>` returns the provided [all …]
|
/external/tensorflow/tensorflow/python/data/experimental/benchmarks/ |
D | map_and_batch_benchmark.py | 21 import itertools 106 seq_elem_size_series = itertools.product([1], [1], [1, 2, 4, 8], [16]) 107 seq_batch_size_series = itertools.product([1], [1], [1], [8, 16, 32, 64]) 110 par_elem_size_series = itertools.product([32], [32], [1, 2, 4, 8], [256]) 111 par_batch_size_series = itertools.product([32], [32], [1], 113 par_num_calls_series = itertools.product([8, 16, 32, 64], [32], [1], [512]) 114 par_inter_op_series = itertools.product([32], [8, 16, 32, 64], [1], [512])
|
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/ |
D | offset_token.py | 6 import itertools 13 a, b = itertools.tee(iterable) 14 a = itertools.chain((None,), a) 15 return itertools.izip(a, b)
|
/external/python/cpython2/Doc/howto/ |
D | functional.rst | 12 :mod:`itertools` and :mod:`functools`. 640 :func:`itertools.imap` function does the same thing but can handle infinite 641 iterators; it'll be discussed later, in the section on the :mod:`itertools` module. 660 :func:`filter` also has a counterpart in the :mod:`itertools` module, 661 :func:`itertools.ifilter`, that returns an iterator and can therefore handle 662 infinite sequences just as :func:`itertools.imap` can. 665 :mod:`itertools` module because it cumulatively performs an operation on all the 849 The itertools module 852 The :mod:`itertools` module contains a number of commonly-used iterators as well 866 ``itertools.count(n)`` returns an infinite stream of integers, increasing by 1 [all …]
|
/external/brotli/python/tests/ |
D | _test_utils.py | 4 import itertools 78 opts_list.append([r for r in itertools.product([k], v)]) 79 for o in itertools.product(*opts_list): 80 opts_name = '_'.join([str(i) for i in itertools.chain(*o)])
|
/external/chromium-trace/catapult/common/lab/ |
D | commits.py | 9 import itertools 30 a, b = itertools.tee(iterable) 32 return itertools.izip(a, b)
|
/external/tensorflow/tensorflow/compiler/tests/ |
D | reverse_ops_test.py | 21 import itertools 43 for revdims in itertools.chain.from_iterable( 44 itertools.combinations(range(-offset,
|
/external/tensorflow/tensorflow/python/ops/ |
D | matmul_benchmark.py | 21 import itertools 125 for n, m, (transpose_a, transpose_b) in itertools.product( 131 for n, m, k, (transpose_a, transpose_b) in itertools.product( 136 for (n, m, k), (transpose_a, transpose_b) in itertools.product(
|
/external/python/cpython2/Lib/ |
D | timeit.py | 59 import itertools 62 itertools = None variable 195 if itertools: 196 it = itertools.repeat(None, number)
|
/external/v8/tools/clusterfuzz/ |
D | v8_suppressions.py | 27 import itertools 145 return itertools.izip_longest( 146 lines, itertools.islice(lines, 1, None), fillvalue=None) 200 for ((line1, lookahead1), (line2, lookahead2)) in itertools.izip_longest(
|
/external/llvm/utils/ |
D | shuffle_fuzz.py | 17 import itertools 106 for _ in itertools.repeat(None, width)] 107 for _ in itertools.repeat(None, args.max_shuffle_height - i)] 178 s += ''.join(['\\00' for _ in itertools.repeat(None, 128 - len(s) + 2)])
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/ |
D | shuffle_fuzz.py | 17 import itertools 106 for _ in itertools.repeat(None, width)] 107 for _ in itertools.repeat(None, args.max_shuffle_height - i)] 178 s += ''.join(['\\00' for _ in itertools.repeat(None, 128 - len(s) + 2)])
|
/external/python/setuptools/setuptools/command/ |
D | build_py.py | 9 import itertools 108 globs_matches = itertools.chain.from_iterable(globs_expanded) 110 files = itertools.chain( 209 matches = itertools.chain.from_iterable(match_groups) 227 raw_patterns = itertools.chain(
|
/external/python/cpython2/Lib/lib2to3/ |
D | fixer_base.py | 7 import itertools 30 numbers = itertools.count(1) # For new_name() 157 self.numbers = itertools.count(1)
|
/external/python/cpython3/Lib/lib2to3/ |
D | fixer_base.py | 7 import itertools 29 numbers = itertools.count(1) # For new_name() 156 self.numbers = itertools.count(1)
|
/external/autotest/client/common_lib/cros/ |
D | retry_unittest.py | 9 import itertools 55 self._time_mock.side_effect = itertools.count(delay_sec) 68 self._time_mock.side_effect = itertools.count(delay_sec)
|
/external/v8/tools/gcmole/ |
D | parallel.py | 23 import itertools 40 for filename, result in itertools.izip(
|
/external/python/cpython3/Lib/test/ |
D | test_pprint.py | 5 import itertools 302 d = collections.OrderedDict(zip(words, itertools.count())) 317 d = dict(zip(words, itertools.count())) 329 d = collections.OrderedDict(zip(words, itertools.count())) 853 d = collections.defaultdict(int, zip(words, itertools.count())) 882 items = list(zip(words, itertools.count())) 923 d = collections.deque(zip(words, itertools.count())) 935 d = collections.deque(zip(words, itertools.count()), maxlen=7) 951 d = collections.UserDict(zip(words, itertools.count())) 968 d = collections.UserList(zip(words, itertools.count()))
|
/external/tensorflow/tensorflow/contrib/rnn/python/kernel_tests/ |
D | benchmarking.py | 21 import itertools 65 for config_values in itertools.product(*values):
|
/external/autotest/server/hosts/ |
D | cros_repair_unittest.py | 6 import itertools 367 mock_time.side_effect = itertools.count(0, 20) 379 mock_time.side_effect = itertools.count(0, 20) 381 mock_host.run.side_effect = itertools.cycle([ 395 mock_time.side_effect = itertools.count(0, 20)
|
/external/python/google-api-python-client/ |
D | samples-index.py | 34 import itertools 81 matches = itertools.ifilter(lambda x: x.startswith(name + ':'), lines) 178 desc = ' '.join(itertools.takewhile(lambda x: x, lines))
|
/external/deqp/modules/gles2/scripts/ |
D | gen-qualification_order.py | 24 import itertools 203 for p in itertools.permutations(f): 210 for p in itertools.permutations(f):
|
/external/libxkbcommon/xkbcommon/ |
D | makekeys.py | 3 import re, sys, itertools 50 print_entries(next(g[1]) for g in itertools.groupby(sorted(entries, key=lambda e: e[1]), key=lambda…
|
/external/python/cpython2/Doc/library/ |
D | future_builtins.rst | 41 Works like :func:`itertools.ifilter`. 51 Works like :func:`itertools.imap`. 66 Works like :func:`itertools.izip`.
|