Home
last modified time | relevance | path

Searched +full:pure +full:- +full:rand (Results 1 – 25 of 240) sorted by relevance

12345678910

/aosp_15_r20/external/rust/android-crates-io/crates/num-bigint/
DREADME.md1 # num-bigint
3 [![crate](https://img.shields.io/crates/v/num-bigint.svg)](https://crates.io/crates/num-bigint)
4 [![documentation](https://docs.rs/num-bigint/badge.svg)](https://docs.rs/num-bigint)
5 …stc 1.31](https://img.shields.io/badge/rustc-1.31+-red.svg)](https://rust-lang.github.io/rfcs/2495
6 …[build status](https://github.com/rust-num/num-bigint/workflows/master/badge.svg)](https://github.…
16 num-bigint = "0.4"
22 1.36 and the stabilized `alloc` crate. If you depend on `num-bigint` with
23 `default-features = false`, you must manually enable the `std` feature yourself
28 `num-bigint` supports the generation of random big integers when the `rand`
29 feature is enabled. To enable it include rand as
[all …]
/aosp_15_r20/external/pytorch/aten/src/ATen/native/cuda/
H A DDropout.cu34 // Note: VEC <= 4 (and in most real-world cases will be 4), so same logic applies.
72 float4 rand; in fused_dropout_kernel_vec() local
83 …//curand_uniform_double was pure evil anyway, not doing what it promises, and there's nothing for … in fused_dropout_kernel_vec()
84 …// Note: need a new set of random values per 4 elements -- we'll handle VEC elements in this threa… in fused_dropout_kernel_vec()
85 // sets of rand. in fused_dropout_kernel_vec()
87 rand = curand_uniform4(&state); in fused_dropout_kernel_vec()
90 rand.x = rand.z; in fused_dropout_kernel_vec()
91 rand.y = rand.w; in fused_dropout_kernel_vec()
95 rand.x = rand.x < p; in fused_dropout_kernel_vec()
96 rand.y = rand.y < p; in fused_dropout_kernel_vec()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/crypto/ed25519/
Ded25519.go2 // Use of this source code is governed by a BSD-style
14 // Operations involving private keys are implemented using constant-time
22 cryptorand "crypto/rand"
82 // Sign signs the given message with priv. rand is ignored and can be nil.
84 // If opts.HashFunc() is [crypto.SHA512], the pre-hashed variant Ed25519ph is used
85 // and message is expected to be a SHA-512 hash, otherwise opts.HashFunc() must
91 func (priv PrivateKey) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) (signature []by…
118 …expected opts.HashFunc() zero (unhashed message, for standard Ed25519) or SHA-512 (for Ed25519ph)")
136 // GenerateKey generates a public/private key pair using entropy from rand.
137 // If rand is nil, [crypto/rand.Reader] will be used.
[all …]
/aosp_15_r20/external/bazelbuild-rules_rust/crate_universe/test_data/metadata/crate_renamed_optional_deps_enabled/
H A Dmetadata.json11 "no-std",
12 "parser-implementations"
16Pure Rust implementation of Base16 a.k.a hexadecimal (RFC 4648) which avoids\nany usages of data-d…
26 "id": "registry+https://github.com/rust-lang/crates.io-index#[email protected]",
32 "license": "Apache-2.0 OR MIT",
35 …"manifest_path": "{CARGO_HOME}/registry/src/index.crates.io-6f17d22bba15001f/base16ct-0.2.0/Cargo.…
39 "all-features": true,
40 "rustdoc-args": [
41 "--cfg",
52 "source": "registry+https://github.com/rust-lang/crates.io-index",
[all …]
/aosp_15_r20/external/pytorch/test/cpp/jit/
H A Dtest_alias_analysis.cpp53 graph->lint(); in createGraph()
62 // NOLINTNEXTLINE(performance-inefficient-vector-operation)
63 inputs.push_back(nodes.at(name_)->output());
65 auto node = graph->appendNode(graph->create(prim::AutogradZero, inputs));
66 node->output()->setDebugName(name);
70 node->addBlock();
73 // NOLINTNEXTLINE(performance-inefficient-vector-operation)
74 blockDeps.push_back(nodes.at(name_)->output());
77 auto block = node->blocks().at(0);
78 block->appendNode(graph->create(prim::AutogradZero, blockDeps));
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/libm/
DCargo.toml21 description = "libm in pure Rust"
28 categories = ["no-std"]
29 license = "MIT OR Apache-2.0"
30 repository = "https://github.com/rust-lang/libm"
35 [dev-dependencies.no-panic]
38 [build-dependencies.rand]
44 musl-reference-tests = ["rand"]
/aosp_15_r20/external/pytorch/torch/csrc/jit/codegen/onednn/
H A DREADME.md1 # Pytorch - oneDNN Graph API Bridge
2 This is a PyTorch JIT graph fuser based on [oneDNN Graph API](https://spec.oneapi.io/onednn-graph/l…
4 Currently, speedup is achieved only for static shapes, although we'd soon add dynamic-shape support…
7 We have registered optimization passes in the custom pre-passes set of PyTorch:
11 …The operators of oneDNN graph are pure functional while PyTorch has operators in in-place forms or…
24 …The original PyTorch JIT graph will be re-written based on the partitions returned from the backen…
31 During runtime execution of a (re-written) PyTorch JIT graph, oneDNN graph partitions will be dispa…
32 …/onednn-graph/latest/programming_model.html#partition) and [executed](https://spec.oneapi.io/onedn…
43 A simple cascaded Conv-Relu example is provided in test. Please consider enabling log outputs to fa…
45 **Mutation Removal -> Prepare Binary -> Defer Size Check -> Graph Fuser -> Layout Propagation -> Ty…
[all …]
/aosp_15_r20/prebuilts/vndk/v30/x86/include/generated-headers/hardware/interfaces/wifi/supplicant/1.0/[email protected]_genc++_headers/gen/android/hardware/wifi/supplicant/1.0/
DISupplicantStaNetworkCallback.h30 * Type tag for use in template logic that indicates this is a 'pure' class.
60 ::android::hardware::hidl_array<uint8_t, 16> rand __attribute__ ((aligned(1)));
64 …:V1_0::ISupplicantStaNetworkCallback::NetworkRequestEapSimUmtsAuthParams, rand) == 0, "wrong offse…
107 * Provides run-time type information for this object.
117 * @return descriptors a vector of descriptors of the run-time type of the
139 * Provides run-time type information for this object.
147 * @return descriptor a descriptor of the run-time type of the
169 * SHA-256 is used as the hashing algorithm. Each hash has 32 bytes
170 * according to SHA-256 standard.
172 * @return hashchain a vector of SHA-1 digests
[all …]
/aosp_15_r20/prebuilts/vndk/v30/arm64/include/generated-headers/hardware/interfaces/wifi/supplicant/1.0/[email protected]_genc++_headers/gen/android/hardware/wifi/supplicant/1.0/
DISupplicantStaNetworkCallback.h30 * Type tag for use in template logic that indicates this is a 'pure' class.
60 ::android::hardware::hidl_array<uint8_t, 16> rand __attribute__ ((aligned(1)));
64 …:V1_0::ISupplicantStaNetworkCallback::NetworkRequestEapSimUmtsAuthParams, rand) == 0, "wrong offse…
107 * Provides run-time type information for this object.
117 * @return descriptors a vector of descriptors of the run-time type of the
139 * Provides run-time type information for this object.
147 * @return descriptor a descriptor of the run-time type of the
169 * SHA-256 is used as the hashing algorithm. Each hash has 32 bytes
170 * according to SHA-256 standard.
172 * @return hashchain a vector of SHA-1 digests
[all …]
/aosp_15_r20/prebuilts/vndk/v30/x86_64/include/generated-headers/hardware/interfaces/wifi/supplicant/1.0/[email protected]_genc++_headers/gen/android/hardware/wifi/supplicant/1.0/
DISupplicantStaNetworkCallback.h30 * Type tag for use in template logic that indicates this is a 'pure' class.
60 ::android::hardware::hidl_array<uint8_t, 16> rand __attribute__ ((aligned(1)));
64 …:V1_0::ISupplicantStaNetworkCallback::NetworkRequestEapSimUmtsAuthParams, rand) == 0, "wrong offse…
107 * Provides run-time type information for this object.
117 * @return descriptors a vector of descriptors of the run-time type of the
139 * Provides run-time type information for this object.
147 * @return descriptor a descriptor of the run-time type of the
169 * SHA-256 is used as the hashing algorithm. Each hash has 32 bytes
170 * according to SHA-256 standard.
172 * @return hashchain a vector of SHA-1 digests
[all …]
/aosp_15_r20/prebuilts/vndk/v30/arm/include/generated-headers/hardware/interfaces/wifi/supplicant/1.0/[email protected]_genc++_headers/gen/android/hardware/wifi/supplicant/1.0/
DISupplicantStaNetworkCallback.h30 * Type tag for use in template logic that indicates this is a 'pure' class.
60 ::android::hardware::hidl_array<uint8_t, 16> rand __attribute__ ((aligned(1)));
64 …:V1_0::ISupplicantStaNetworkCallback::NetworkRequestEapSimUmtsAuthParams, rand) == 0, "wrong offse…
107 * Provides run-time type information for this object.
117 * @return descriptors a vector of descriptors of the run-time type of the
139 * Provides run-time type information for this object.
147 * @return descriptor a descriptor of the run-time type of the
169 * SHA-256 is used as the hashing algorithm. Each hash has 32 bytes
170 * according to SHA-256 standard.
172 * @return hashchain a vector of SHA-1 digests
[all …]
/aosp_15_r20/external/pytorch/docs/source/
H A Djit.rst36 We provide tools to incrementally transition a model from a pure Python program
40 for performance and multi-threading reasons.
44 For an end-to-end example of converting a PyTorch model to TorchScript and running it in C++, see t…
48 --------------------------
78 ----------------------------
85 to use control-flow around a simple feed-forward model. For instance the beam search
121 traced_foo = torch.jit.trace(foo, (torch.rand(3), torch.rand(3)))
128 a model requires some control-flow even though most of the model is just a feed-forward
129 network. Control-flow inside of a script function called by a traced function is
150 traced_bar = torch.jit.trace(bar, (torch.rand(3), torch.rand(3), torch.rand(3)))
[all …]
/aosp_15_r20/external/pytorch/
H A DCONTRIBUTING.md3-Ultimate-Guide-to-PyTorch-Contributions), specifically the [Submitting a Change](https://github.c…
11 <!-- toc -->
13 - [Developing PyTorch](#developing-pytorch)
14 - [Setup the development environment](#setup-the-development-environment)
15 - [Tips and Debugging](#tips-and-debugging)
16 - [Nightly Checkout & Pull](#nightly-checkout--pull)
17 - [Codebase structure](#codebase-structure)
18 - [Unit testing](#unit-testing)
19 - [Python Unit Testing](#python-unit-testing)
20 - [Better local unit tests with `pytest`](#better-local-unit-tests-with-pytest)
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/doc/
Dgodebug.md1 ---
4 ---
6 <!--
10 -->
30 can hold a comma-separated list of these settings.
56 named `/godebug/non-default-behavior/<name>:events`
58 behavior has changed based on a non-default value
61 `/godebug/non-default-behavior/http2client:events`
76 it defaults to `panicnil=0`, making `panic(nil)` a run-time error.
104 then asking for the old pre-Go 1.21 `panic(nil)` behavior and the
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/x509-cert/
DCargo.toml14 rust-version = "1.65"
15 name = "x509-cert"
19 Pure Rust implementation of the X.509 Public Key Infrastructure Certificate
26 "data-structures",
28 "no-std",
30 license = "Apache-2.0 OR MIT"
31 repository = "https://github.com/RustCrypto/formats/tree/master/x509-cert"
34 all-features = true
35 rustdoc-args = [
36 "--cfg",
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/python/keras/benchmarks/
H A Dmetrics_memory_benchmark_test.py7 # http://www.apache.org/licenses/LICENSE-2.0
23 import memory_profiler # pylint:disable=g-import-not-at-top
39 self.y_pred = np.random.rand(1024, 1024)
45 # The pure memory consumption is approximately max(usage) - min(usage)
46 memory_usage_1 = max(memory_usage_1) - min(memory_usage_1)
47 memory_usage_2 = max(memory_usage_2) - min(memory_usage_2)
61 thresholds = [x / (num_thresholds - 1) for x in range(num_thresholds)]
63 thresholds = thresholds[1:-1]
/aosp_15_r20/external/bc/manuals/
H A Ddevelopment.md6 bus][1]. In other words, it's meant to make the [bus factor][1] a non-issue.
25 and C. They both are arbitrary-precision command-line calculators with their own
30 In addition, it is also possible to build the arbitrary-precision math as a
58 This project became a passion project for me, and I continued. In mid-2019,
64 about things like fuzzing, [`scan-build`][19], [valgrind][20],
150 pseudo-random number generator (for the same seed).
183 * Pseudo-Random Number Generator (see [`include/rand.h`][37]).
213 1. High-level requirements
214 2. Low-level requirements
215 3. High-level implementation
[all …]
/aosp_15_r20/external/pytorch/benchmarks/instruction_counts/definitions/
H A Dstandard.py5 - Width for the left (Python) column MUST be 40 characters.
6 - The column separator is " | ", not "|". Whitespace matters.
9 - `Setup` and `Global_Setup` (case insensitive) are reserved keywords
11 - To set a label for the succeeding block, add `# @YOUR_LABEL` (Python)
14 # mypy: ignore-errors
58 ---------------------------------------- | ----------------------------------------
61 x = torch.rand((4, 4)) | auto x = torch::rand({4, 4});
95 ---------------------------------------- | ----------------------------------------
104 # @contiguous (non-trivial) | // @contiguous (non-trivial)
126 ---------------------------------------- | ----------------------------------------
[all …]
/aosp_15_r20/external/pytorch/test/jit/
H A Dtest_class_type.py46 def get_a(self) -> int:
98 def __init__(self) -> None:
101 def __contains__(self, key: str) -> bool:
113 def __init__(self, x: int) -> None:
116 def incFooTest(self, y: int) -> None:
120 def fn(x: int) -> int:
162 self.bar = y # can't assign to non-initialized attr
168 str mode='\156\145\141\162\145\163\164', bool? align_corners=None) -> (Tensor):
184 def __init__(self, x: bool) -> None:
195 RuntimeError, "assignment cannot be in a control-flow block", ""
[all …]
/aosp_15_r20/external/webrtc/video/end_to_end_tests/
H A Dfec_tests.cc4 * Use of this source code is governed by a BSD-style license
74 int encapsulated_payload_type = -1; in TEST_F()
90 if (num_packets_sent_++ > 100 && random_.Rand(1, 100) <= 5) { in TEST_F()
103 // Rendering frame with timestamp of packet that was dropped -> FEC in TEST_F()
117 send_config->encoder_settings.encoder_factory = &encoder_factory_; in TEST_F()
118 send_config->rtp.payload_name = "VP8"; in TEST_F()
119 send_config->rtp.payload_type = kVideoSendPayloadType; in TEST_F()
120 encoder_config->codec_type = kVideoCodecVP8; in TEST_F()
128 send_config->rtp.ulpfec.red_payload_type = kRedPayloadType; in TEST_F()
129 send_config->rtp.ulpfec.ulpfec_payload_type = kUlpfecPayloadType; in TEST_F()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/cmd/internal/notsha256/
Dsha256_test.go2 // Use of this source code is governed by a BSD-style
5 // SHA256 hash algorithm. See FIPS 180-2.
10 "crypto/rand"
39 …c278cd071cd6c05832793635774", "The days of the digital watch are numbered. -Tom Stoppard", "sha\x…
43 …", "There is no reason for any individual to have a computer in their home. -Ken Olsen, 1977", "sh…
44 …ad214d16d7", "It's a tiny change to the code and not completely disgusting. - Bob Manchek", "sha\x…
46 …0904f7f429ef083286195982a7588858cfc", "The major problem is with sendmail. -Mark Horton", "sha\x0…
52 …ven if I could be Shakespeare, I think I should still choose to be Faraday. - A. Huxley", "sha\x03…
53 …of gases at a given temperature is proportional to its mole fraction. Lewis-Randall Rule", "sha\x…
54 …1fe63e65de2f636863336a98fe6", "How can you write a big system without C++? -Paul Glick", "sha\x03…
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/net/
Ddnsclient.go2 // Use of this source code is governed by a BSD-style
19 //go:linkname runtime_rand runtime.rand
30 // reverseaddr returns the in-addr.arpa. or ip6.arpa. hostname of the IP
39 …(ip[14])) + "." + itoa.Uitoa(uint(ip[13])) + "." + itoa.Uitoa(uint(ip[12])) + ".in-addr.arpa.", nil
44 for i := len(ip) - 1; i >= 0; i-- {
76 // isDomainName checks if a string is a presentation-format domain name
77 // (currently restricted to hostname-compatible "preferred name" LDH labels and
78 // SRV-like "underscore labels"; see golang.org/issue/12421).
83 // - github.com/sagernet/sing
97 // terminal empty label is optional here because we assume fully-qualified
[all …]
/aosp_15_r20/external/libvpx/build/make/
H A Dconfigure.sh18 echo "See $0 --help for available options."
41 cat -n $1 >>$logfile
58 opt2=`echo $opt | sed -e 's;_;-;g'`
60 eval "toggle_${opt}=\"--disable-${opt2}\""
62 eval "toggle_${opt}=\"--enable-${opt2} \""
71 --help print this message
72 --log=yes|no|FILE file configure log is written to [config.log]
73 --target=TARGET target platform tuple [generic-gnu]
74 --cpu=CPU optimize for a specific cpu rather than a family
75 --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]
[all …]
/aosp_15_r20/system/keymaster/contexts/
H A Dpure_soft_keymaster_context.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
26 #include <openssl/rand.h>
86 pure_soft_remote_provisioning_context_->SetSystemVersion(os_version, os_patchlevel); in SetSystemVersion()
114 pure_soft_remote_provisioning_context_->SetVerifiedBootInfo(boot_state, bootloader_state, in SetVerifiedBootInfo()
127 pure_soft_remote_provisioning_context_->SetVendorPatchlevel(vendor_patchlevel); in SetVendorPatchlevel()
139 pure_soft_remote_provisioning_context_->SetBootPatchlevel(boot_patchlevel); in SetBootPatchlevel()
190 return key_factory->GetOperationFactory(purpose); in GetOperationFactory()
199 // Check whether the key blob can be securely stored by pure software secure key storage. in CreateKeyBlob()
203 pure_soft_secure_key_storage_->HasSlot(&canStoreBySecureKeyStorageIfRequired); in CreateKeyBlob()
242 hw_enforced->push_back(entry); in CreateKeyBlob()
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/crypto/md5/
Dmd5_test.go2 // Use of this source code is governed by a BSD-style
10 "crypto/rand"
41 …{"a0f04459b031f916a59a35cc482dc039", "The days of the digital watch are numbered. -Tom Stoppard",…
45 …", "There is no reason for any individual to have a computer in their home. -Ken Olsen, 1977", "md…
46 …86985aefaf", "It's a tiny change to the code and not completely disgusting. - Bob Manchek", "md5\x…
48 …{"c90f3ddecc54f34228c063d7525bf644", "The major problem is with sendmail. -Mark Horton", "md5\x01…
54 …ven if I could be Shakespeare, I think I should still choose to be Faraday. - A. Huxley", "md5\x01…
55 …of gases at a given temperature is proportional to its mole fraction. Lewis-Randall Rule", "md5\x…
56 …{"132f7619d33b523b1d9e5bd8e0928355", "How can you write a big system without C++? -Paul Glick", "…
146 // Tests that blockGeneric (pure Go) and block (in assembly for amd64, 386, arm) match.
[all …]

12345678910