Home
last modified time | relevance | path

Searched +full:restore +full:- +full:keys (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/third_party/mindspore/mindspore-src/source/tests/ut/python/dataset/
Dtest_pipeline_debug_mode_map.py7 # http://www.apache.org/licenses/LICENSE-2.0
27 SEED_VAL = 0 # seed will be set internally in debug mode, save original seed value to restore.
73 Description: Test GeneratorDataset with 1 column, map 1 column -> 1 column (renamed)
91 assert len(item.keys()) == 1
96 # Restore configuration
105 Description: Test GeneratorDataset with 1 column, map 1 column -> 1 column (renamed)
123 assert len(item.keys()) == 1
128 # Restore configuration
137 Description: Test GeneratorDataset with 1 column, map 1 column -> 3 columns
159 assert len(item.keys()) == 3
[all …]
Dtest_map.py7 # http://www.apache.org/licenses/LICENSE-2.0
186 data_dir_tf = ["../data/dataset/test_tf_file_3_images/train-0000-of-0001.data"]
213 # Restore config setting
259 # Restore config setting
293 # Restore config setting
348 # Restore config setting
400 assert len(item.keys()) == 2
401 assert "label" in item.keys()
402 assert "data" in item.keys()
421 assert len(item.keys()) == 3
[all …]
Dtest_datasets_imagefolder.py1 # Copyright 2019-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
49 # in this example, each dictionary has keys "image" and "label"
74 # in this example, each dictionary has keys "image" and "label"
117 # in this example, each dictionary has keys "image" and "label"
142 # in this example, each dictionary has keys "image" and "label"
167 # in this example, each dictionary has keys "image" and "label"
193 # in this example, each dictionary has keys "image" and "label"
222 # in this example, each dictionary has keys "image" and "label"
243 class_index = {"class3": -333, "class1": 111}
[all …]
/third_party/json/docs/mkdocs/docs/features/
Dobject_order.md3 …lue pairs". As such, an implementation does not need to preserve any specific order of object keys.
5 ## Default behavior: sort keys
7 …nn::json` uses a `std::map` to store JSON objects, and thus stores object keys **sorted alphabetic…
45 --8<-- "examples/ordered_json.cpp"
51 --8<-- "examples/ordered_json.output"
54-map) ([integration](https://github.com/nlohmann/json/issues/546#issuecomment-304447518)) or [`nlo…
92 …insertion order, but sorts object keys. Assigning the result to `nlohmann::ordered_json` compiles,…
93 restore the order from the input file.
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/Retired/
DcheckLinks.py3 # Copyright 2015-2024 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
7 # checkLinks.py - validate link/reference API constructs in files
12 # -follow attempt to follow include:: directives. This script is not an
14 # -info print some internal diagnostics.
15 # -paramcheck attempt to validate param: names against the surrounding
18 # -fatal unvalidatable links cause immediate error exit from the script.
23 # API, e.g. 'makeAllExts checklinks'; otherwise many false-flagged errors
33 curLine = -1
42 if (curFile not in emittedPrefix.keys()):
[all …]
/third_party/python/Lib/curses/
D__init__.py58 # Wrapper for the entire curses-based application. Runs a function which
59 # should be the rest of your curses-based application. If the application
60 # raises an exception, wrapper() will restore the terminal to a sane state so
75 # Turn off echoing of keys, and enter cbreak mode,
80 # In keypad mode, escape sequences for special keys
81 # (like the cursor keys) will be interpreted and
87 # works around a minor bit of over-conscientiousness in the curses
88 # module -- the error return from C start_color() is ignorable.
/third_party/mbedtls/tests/suites/
Dtest_suite_lms.data1 LMS sign-verify test
6 LMS NULL-message sign-verify test
7 # This test uses a NULL zero-length message, and then generates a private key,
17 # stores public keys and signatures in HSS form, which appends a 4-byte "levels"
23 # * pip3 install --user pyhsslms
51 LMS pyhsslms interop NULL-message test
56 # signature is to be reproduced. Message data is random. Note that hash-sigs
57 # stores public keys and signatures in HSS form, which appends a 4-byte
63 # * pip3 install --user pyhsslms
76 # * echo -n -e "\0\0\0\0" > message.bin.sig; cat sig.bin >> message.bin.sig (restore the
[all …]
Dtest_suite_ssl_decrypt.function94 /* For robustness, check a 0-length buffer (non-null, then null).
136 * - if it's -1, the plaintext length is 0 and minimal padding is applied
137 * - if it's -2, the plaintext length is 0 and maximal padding is applied
138 * - otherwise it must be in [0, 255] and is padding_length from RFC 5246:
140 * byte that encodes the length. The minimal non-zero plaintext length
159 /* Set up transforms with dummy keys */
168 TEST_ASSERT(length_selector >= -2 && length_selector <= 255);
175 padlen = block_size - (t0.maclen + 1) % block_size;
178 if (length_selector == -2) {
179 padlen += block_size * ((pad_max_len - padlen) / block_size);
[all …]
/third_party/benchmark/.github/workflows/
Dbazel.yml8 build-and-test:
9 runs-on: ubuntu-latest
12 - uses: actions/checkout@v1
14 - name: mount bazel cache
17 cache-name: bazel-cache
20 key: ${{ env.cache-name }}-${{ runner.os }}-${{ github.ref }}
21 restore-keys: |
22 ${{ env.cache-name }}-${{ runner.os }}-main
24 - name: build
28 - name: test
[all …]
/third_party/mbedtls/programs/ssl/
Dssl_test_common_source.c12 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
23 eap_tls_keys *keys = (eap_tls_keys *) p_expkey; in eap_tls_key_derivation() local
29 if (secret_len != sizeof(keys->master_secret)) { in eap_tls_key_derivation()
33 memcpy(keys->master_secret, secret, sizeof(keys->master_secret)); in eap_tls_key_derivation()
34 memcpy(keys->randbytes, client_random, 32); in eap_tls_key_derivation()
35 memcpy(keys->randbytes + 32, server_random, 32); in eap_tls_key_derivation()
36 keys->tls_prf_type = tls_prf_type; in eap_tls_key_derivation()
80 mbedtls_printf("---------------- NSS KEYLOG -----------------\n"); in nss_keylog_export()
82 mbedtls_printf("---------------------------------------------\n"); in nss_keylog_export()
117 dtls_srtp_keys *keys = (dtls_srtp_keys *) p_expkey; in dtls_srtp_key_derivation() local
[all …]
/third_party/openssl/crypto/bn/asm/
Ds390x-mont.pl2 # Copyright 2007-2020 The OpenSSL Project Authors. All Rights Reserved.
22 # 64x64=128-bit multiplication, which is not commonly available to C
23 # programmers], at least hand-coded bn_asm.c replacement is known to
24 # provide 30-40% better results for longest keys. Well, on a second
25 # thought it's not very surprising, because z-CPUs are single-issue
26 # and _strictly_ in-order execution, while bn_mul_mont is more or less
27 # dependent on CPU ability to pipe-line instructions and have several
28 # of them "in-flight" at the same time. I mean while other methods,
34 # module performance by implementing dedicated squaring code-path and
40 # make inner loops counter-based.
[all …]
/third_party/python/Lib/idlelib/idle_test/
Dtest_config.py26 userkeys = testcfg['keys'] = config.IdleUserConfParser('')
193 config_path = os.path.join(idle_dir, '../config-%s.def' % ctype)
210 Both default and user config used the same config-*.def
276 # Check keys are equal
277 self.assertCountEqual(conf.defaultCfg.keys(), conf.config_types)
278 self.assertCountEqual(conf.userCfg.keys(), conf.config_types)
289 os.path.join(idle_dir, f'config-{cfg_type}.def'))
292 os.path.join(conf.userdir or '#', f'config-{cfg_type}.cfg'))
346 'Keys', 'History', 'HelpFiles'])
350 'Keys', 'History', 'HelpFiles'])
[all …]
/third_party/python/Python/clinic/
Dcontext.c.h7 "--\n"
45 "--\n"
49 "The result is returned as a list of 2-tuples (variable, value).");
64 "keys($self, /)\n"
65 "--\n"
70 {"keys", (PyCFunction)_contextvars_Context_keys, METH_NOARGS, _contextvars_Context_keys__doc__},
83 "--\n"
101 "--\n"
119 "--\n"
157 "--\n"
[all …]
/third_party/python/Tools/c-analyzer/c_common/
Dscriptutil.py43 module = module[:-9]
44 return f'{sys.executable} -m {module}'
58 # This will be None if -m wasn't used..
133 # XXX Handle subtraction (leading "-").
180 # XXX Fail on non-empty, non-callable procs?
192 parser.add_argument('-q', '--quiet', action='count', default=0)
193 parser.add_argument('-v', '--verbose', action='count', default=0)
200 ns[key] = max(0, VERBOSITY + ns.pop('verbose') - ns.pop('quiet'))
206 parser.add_argument('--traceback', '--tb', action='store_true',
208 parser.add_argument('--no-traceback', '--no-tb', dest='traceback',
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/parallel/
D_parallel_serialization.py7 # http://www.apache.org/licenses/LICENSE-2.0
34 for param_name in strategy.keys():
42 if "-" in param_name:
43 pipeline_stage, origin_param_name = param_name.split("-")
178 if strategy_filename[-5:] != ".json":
197 layout_item.param_name = "-".join([str(pipeline_stage), layout_item.param_name])
217 pipeline_stage = strategy_items.get(list(strategy_items.keys())[0]).get('stage')
222 new_param_name = "-".join([str(pipeline_stage), param_name])
268 for param_name in list(dst_layout_map.keys()):
269 if param_name in src_layout_map.keys():
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIMachineFunctionInfo.h1 //==- SIMachineFunctionInfo.h - SIMachineFunctionInfo interface --*- C++ -*-==//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
77 return V->kind() == PSVBuffer; in classof()
88 return V->kind() == PSVImage; in classof()
98 return V->kind() == GWSResource; in classof()
172 auto Keys = YamlIO.keys();
173 if (is_contained(Keys, "reg")) {
176 } else if (is_contained(Keys, "offset"))
[all …]
/third_party/toybox/kconfig/
Dmconf.c2 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
5 * Introduced single menu mode (show all sub-menus in one large tree).
6 * 2002-11-06 Petr Baudis <pasky@ucw.cz>
32 "--------\n"
44 "keys and press <Y> to build it in, <M> to make it a module or\n"
46 "through the available options (ie. Y->N->M->Y).\n"
51 "----------\n"
52 "o Use the Up/Down arrow keys (cursor keys) to highlight the item\n"
54 " Submenus are designated by \"--->\".\n"
60 " You may also use the <PAGE UP> and <PAGE DOWN> keys to scroll\n"
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Device/
DMemset.hpp7 // http://www.apache.org/licenses/LICENSE-2.0
22 // "‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘T’;
23 // use assignment or value-initialization instead [-Werror=class-memaccess]"
27 # pragma GCC diagnostic ignored "-Wclass-memaccess"
33 // It is useful as the *first* base class of map keys which may contain padding
59 // due to having a user-defined copy constructor and copy assignment operator. Delete
82 // Restore -Wclass-memaccess
/third_party/python/Doc/howto/
Dcurses.rst1 .. _curses-howto:
16 module to control text-mode displays.
22 The curses library supplies a terminal-independent screen-painting and
23 keyboard-handling facility for text-based terminals; such terminals
31 true that character-cell display terminals are an obsolete technology,
33 are still valuable. One niche is on small-footprint or embedded
40 non-overlapping windows of text. The contents of a window can be
41 changed in various ways---adding text, erasing it, changing its
42 appearance---and the curses library will figure out what control codes
44 doesn't provide many user-interface concepts such as buttons, checkboxes,
[all …]
/third_party/mbedtls/tests/scripts/
Ddepends.py4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
16 - domain name, can be used to run only specific tests via command-line;
17 - configuration building method, described in detail below;
18 - list of symbols passed to the configuration building method;
19 - commands to be run on each job (only build, build and test, or any other custom);
20 - optional list of symbols to be excluded from testing.
24 - ComplementaryDomain - build a job for each passed symbol by disabling a single
27 - ExclusiveDomain - build a job where, for each passed symbol, only this particular
29 any non-standard symbols to set/unset in EXCLUSIVE_GROUPS. These are usually not
30 direct dependencies, but rather non-trivial results of other configs missing. Then
[all …]
/third_party/mindspore/mindspore-src/source/mindspore/python/mindspore/nn/optim/
Doptimizer.py1 # Copyright 2020-2022 Huawei Technologies Co., Ltd
7 # http://www.apache.org/licenses/LICENSE-2.0
52 if 'params' in arguments.keys():
55 if 'optimizer' in arguments.keys():
58 if 'learning_rate' in arguments.keys():
88 - float: The fixed learning rate value. Must be equal to or greater than 0.
90- int: The fixed learning rate value. Must be equal to or greater than 0. It will be converted to …
92- Tensor: Its value should be a scalar or a 1-D vector. For scalar, fixed learning rate will be ap…
93 …For vector, learning rate is dynamic, then the i-th step will take the i-th value as the learning …
95- Iterable: Learning rate is dynamic. The i-th step will take the i-th value as the learning rate.
[all …]
/third_party/openssl/doc/man3/
DSSL_new.pod5 SSL_dup, SSL_new, SSL_up_ref - create an SSL structure for a connection
38 state for re-use, but this is best avoided. Instead, save and restore
50 =item any configured certificates, private keys or certificate chains
127 Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
/third_party/mesa3d/src/gallium/drivers/freedreno/
Dfreedreno_gmem.c52 * to restore the previous tiles contents (system mem -> GMEM), and after all
54 * contents (GMEM -> system mem).
60 * +--<---<-- IB ---<---+---<---+---<---<---<--+
63 * ------------------------------------------------------
65 * ------------------------------------------------------
70 * Where the per-tile section handles scissor setup, mem2gmem restore (if
84 * configuration, avoiding multiple keys arriving at the same gmem
90 * become different keys that map to the same state.
120 printf("{ .minx=%u, .miny=%u, .width=%u, .height=%u", key->minx, key->miny, in dump_gmem_key()
121 key->width, key->height); in dump_gmem_key()
[all …]
/third_party/icu/icu4c/source/i18n/unicode/
Dcoll.h5 * Copyright (C) 1996-2016, International Business Machines
49 * 2012-2014 markus Rewritten in C++ again.
87 * The <code>Collator</code> class performs locale-sensitive string
98 * Like other locale-sensitive classes, you can use the static factory method,
113 * if (myCollator->compare("abc", "ABC") < 0)
136 * usCollator->setStrength(Collator::PRIMARY);
137 * if (usCollator->compare("abc", "ABC") == 0)
145 * other sort keys using <code>strcmp()</code>. Sort keys are written as
146 * zero-terminated byte strings.
170 // Collator public enums -----------------------------------------------
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dcoll.h5 * Copyright (C) 1996-2016, International Business Machines
49 * 2012-2014 markus Rewritten in C++ again.
87 * The <code>Collator</code> class performs locale-sensitive string
98 * Like other locale-sensitive classes, you can use the static factory method,
113 * if (myCollator->compare("abc", "ABC") < 0)
136 * usCollator->setStrength(Collator::PRIMARY);
137 * if (usCollator->compare("abc", "ABC") == 0)
145 * other sort keys using <code>strcmp()</code>. Sort keys are written as
146 * zero-terminated byte strings.
170 // Collator public enums -----------------------------------------------
[all …]

12345678910>>...13