/aosp_15_r20/external/pytorch/torch/distributed/tensor/examples/ |
H A D | comm_mode_features_example.py | 305 **aten.detach.default 309 **aten.detach.default 310 **aten.detach.default 311 **aten.detach.default 315 **aten.detach.default 316 **aten.detach.default 317 **aten.detach.default 321 **aten.detach.default 322 **aten.detach.default 323 **aten.detach.default [all …]
|
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockopt_multi.c | 70 goto detach; in run_getsockopt_test() 78 goto detach; in run_getsockopt_test() 84 goto detach; in run_getsockopt_test() 94 goto detach; in run_getsockopt_test() 101 goto detach; in run_getsockopt_test() 107 goto detach; in run_getsockopt_test() 118 goto detach; in run_getsockopt_test() 125 goto detach; in run_getsockopt_test() 131 goto detach; in run_getsockopt_test() 144 goto detach; in run_getsockopt_test() [all …]
|
/aosp_15_r20/external/skia/gm/ |
H A D | convexpaths.cpp | 64 .detach()); in makePaths() 69 .detach()); in makePaths() 97 fPaths.push_back(b.detach()); in makePaths() 103 .detach()); in makePaths() 106 fPaths.push_back(b.cubicTo( 1, 1, 10, 90, 0, 100).detach()); in makePaths() 107 fPaths.push_back(b.cubicTo(100, 50, 20, 100, 0, 0).detach()); in makePaths() 115 .detach()); in makePaths() 122 .detach()); in makePaths() 129 .detach()); in makePaths() 134 .detach()); in makePaths() [all …]
|
H A D | hairlines.cpp | 43 fPaths.push_back(lineAngles.detach()); in onOnceBeforeDraw() 48 .detach()); in onOnceBeforeDraw() 52 .detach()); in onOnceBeforeDraw() 56 .detach()); in onOnceBeforeDraw() 60 .detach()); in onOnceBeforeDraw() 64 .detach()); in onOnceBeforeDraw() 68 .detach()); in onOnceBeforeDraw() 72 .detach()); in onOnceBeforeDraw() 80 .detach()); in onOnceBeforeDraw() 91 .detach()); in onOnceBeforeDraw() [all …]
|
H A D | concavepaths.cpp | 85 .detach(); in test_fast_forward() 96 .detach(); in test_hole() 157 .detach(); in test_partners() 176 canvas->drawPath(path.detach(), paint); in test_winding_merged_to_zero() 188 canvas->drawPath(path.detach(), paint); in test_monotone_1() 200 canvas->drawPath(path.detach(), paint); in test_monotone_2() 212 canvas->drawPath(path.detach(), paint); in test_monotone_3() 227 canvas->drawPath(path.detach(), paint); in test_monotone_4() 240 canvas->drawPath(path.detach(), paint); in test_monotone_5() 254 canvas->drawPath(path.detach(), paint); in test_degenerate() [all …]
|
H A D | collapsepaths.cpp | 25 canvas->drawPath(path.detach(), paint); in test_collapse1() 37 canvas->drawPath(path.detach(), paint); in test_collapse2() 49 canvas->drawPath(path.detach(), paint); in test_collapse3() 61 canvas->drawPath(path.detach(), paint); in test_collapse4() 74 canvas->drawPath(path.detach(), paint); in test_collapse5() 87 canvas->drawPath(path.detach(), paint); in test_collapse6() 100 canvas->drawPath(path.detach(), paint); in test_collapse7() 113 canvas->drawPath(path.detach(), paint); in test_collapse8() 129 canvas->drawPath(path.detach(), paint); in test_collapse9() 141 canvas->drawPath(path.detach(), paint); in test_collapse10()
|
/aosp_15_r20/external/libopus/dnn/torch/weight-exchange/wexchange/torch/ |
H A D | torch.py | 51 w_kernel = adaconv.conv_kernel.weight.detach().cpu().numpy().copy() 52 b_kernel = adaconv.conv_kernel.bias.detach().cpu().numpy().copy() 53 w_gain = adaconv.filter_gain.weight.detach().cpu().numpy().copy() 54 b_gain = adaconv.filter_gain.bias.detach().cpu().numpy().copy() 107 w_kernel = adaconv.conv_kernel.weight.detach().cpu().numpy().copy() 108 b_kernel = adaconv.conv_kernel.bias.detach().cpu().numpy().copy() 109 w_gain = adaconv.filter_gain.weight.detach().cpu().numpy().copy() 110 b_gain = adaconv.filter_gain.bias.detach().cpu().numpy().copy() 111 w_global_gain = adaconv.global_filter_gain.weight.detach().cpu().numpy().copy() 112 b_global_gain = adaconv.global_filter_gain.bias.detach().cpu().numpy().copy() [all …]
|
/aosp_15_r20/external/pytorch/test/dynamo/ |
H A D | test_recompiles.py | 178 x.clone().detach(), y.clone().detach(), z.clone().detach() 180 eager_result = foo(x.clone().detach(), y.clone().detach(), z.clone().detach()) 185 z.clone().detach(), y.clone().detach(), x.clone().detach() 187 eager_result = foo(z.clone().detach(), y.clone().detach(), x.clone().detach()) 192 x_clone = x.clone().detach() 193 cmp_result = compiled_foo(x_clone, y.clone().detach(), x_clone) 194 x_clone = x.clone().detach() 195 eager_result = compiled_foo(x_clone, y.clone().detach(), x_clone) 212 cmp_result = compiled_foo(z.clone().detach()) 213 eager_result = foo(z.clone().detach()) [all …]
|
/aosp_15_r20/external/skia/tests/ |
H A D | PathBuilderTest.cpp | 36 is_empty(reporter, b.detach()); in DEF_TEST() 42 SkPath p2 = b.detach(); in DEF_TEST() 56 is_empty(reporter, b.detach()); in DEF_TEST() 68 for (const SkPath& path : { b.snapshot(), b.detach() }) { in DEF_TEST() 135 auto bp = b.detach(); in DEF_TEST() 200 auto bp = SkPathBuilder().addOval(r, dir, i).detach(); in DEF_TEST() 205 auto bp = SkPathBuilder().addOval(r, dir).detach(); in DEF_TEST() 211 bp = SkPathBuilder().addOval(r, dir).lineTo(10, 10).detach(); in DEF_TEST() 213 bp = SkPathBuilder().lineTo(10, 10).addOval(r, dir).detach(); in DEF_TEST() 225 auto bp = b.detach(); in DEF_TEST() [all …]
|
/aosp_15_r20/frameworks/native/libs/gui/tests/ |
H A D | SurfaceTextureMultiContextGL_test.cpp | 51 // Detach from the primary context. in TEST_F() 67 // Detach from the primary context. in TEST_F() 83 // Attempt to detach from the primary context. in TEST_F() 96 // Detach from the primary context. in TEST_F() 99 // Attempt to detach from the primary context again. in TEST_F() 116 // Attempt to detach from the primary context. in TEST_F() 133 // Attempt to detach from the primary context. in TEST_F() 141 // Detach from the primary context. in TEST_F() 157 // Detach from the primary context. in TEST_F() 188 // Detach from the primary context. in TEST_F() [all …]
|
/aosp_15_r20/external/pytorch/test/ |
H A D | test_mps.py | 1211 tensor_A = autocast_tensor_A.clone().detach() 1212 tensor_B = autocast_tensor_B.clone().detach() 1214 output_tensor = autocast_output_tensor.clone().detach() 1320 input = input.detach().clone() 1527 mps_x = cpu_x.detach().clone().to('mps') 1631 mask_mps = mask.clone().detach().to('mps') 1933 batch1_mps = batch1_cpu.detach().clone().to("mps") 1934 batch2_mps = batch2_cpu.detach().clone().to("mps") 1965 M_mps = M_cpu.detach().clone().to("mps") 1978 M_mps = M_cpu.detach().clone().to("mps") [all …]
|
/aosp_15_r20/external/pytorch/test/cpp/api/ |
H A D | transformer.cpp | 69 torch::Tensor result = model(encoder_input).detach(); in transformer_encoder_layer_test_helper() 82 .detach(); in transformer_encoder_layer_test_helper() 94 .detach(); in transformer_encoder_layer_test_helper() 100 result = model(encoder_input).detach(); in transformer_encoder_layer_test_helper() 115 .detach(); in transformer_encoder_layer_test_helper() 126 .detach(); in transformer_encoder_layer_test_helper() 143 result = model(encoder_input).detach(); in transformer_encoder_layer_test_helper() 166 .detach(); in transformer_encoder_layer_test_helper() 179 .detach(); in transformer_encoder_layer_test_helper() 199 result = model(encoder_input).detach(); in transformer_encoder_layer_test_helper() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/jni/src/wrapper/java_vm/ |
D | vm.rs | 31 /// The thread will automatically detach itself once the returned guard is dropped. 34 /// The thread will automatically detach itself before it terminates. 96 /// // This method returns the guard that will detach the current thread when dropped, 252 /// The thread will detach itself automatically when it exits. 269 /// will neither change its daemon status nor prematurely detach it. 298 /// explicitly detach daemon threads before `JavaVM::destroy()` is called because 303 /// to detach itself. 305 /// Normally `jni-rs` will automatically detach threads from the `JavaVM` by storing 306 /// a guard in thread-local-storage that will detach on `Drop` but this will cause 309 /// Calling this will clear the thread-local-storage guard and detach the thread [all …]
|
/aosp_15_r20/external/pytorch/test/lazy/ |
H A D | test_reuse_ir.py | 32 x_lazy = x.detach().clone().to(device=device) 33 y_lazy = y.detach().clone().to(device=device) 34 z_lazy = z.detach().clone().to(device=device) 55 x_lazy = x.detach().clone().to(device=device) 56 y_lazy = y.detach().clone().to(device=device) 57 z_lazy = z.detach().clone().to(device=device) 85 x_lazy = x.detach().clone().to(device=device) 86 y_lazy = y.detach().clone().to(device=device) 87 z_lazy = z.detach().clone().to(device=device) 125 x_lazy = x.detach().clone().to(device=device) [all …]
|
/aosp_15_r20/external/opencensus-java/contrib/spring_sleuth_v1x/src/test/java/io/opencensus/contrib/spring/sleuth/v1x/ |
H A D | OpenCensusSleuthTracerTest.java | 87 Span parent = tracer.detach(null); in testDetachNull() 96 Span parent = tracer.detach(root); in testRootSpanAndDetach() 103 Span parent = tracer.detach(spans[spans.length - 1]); in testSpanStackAndDetach() 110 // try to detach a non-current span in testSpanStackAndDetachOutOfOrder() 111 tracer.detach(spans[spans.length - 2]); in testSpanStackAndDetachOutOfOrder() 113 Span parent = tracer.detach(spans[spans.length - 1]); in testSpanStackAndDetachOutOfOrder() 127 tracer.detach(root); in testRootSpanAndContinue() 130 tracer.detach(span); in testRootSpanAndContinue() 138 Span parent = tracer.detach(original); in testSpanStackAndContinue() 146 tracer.detach(continued); in testSpanStackAndContinue() [all …]
|
/aosp_15_r20/external/libopus/dnn/torch/osce/ |
H A D | create_testvectors.py | 57 features = features[0].detach().numpy() 58 x_in = x_in[0].reshape(in_channels, num_frames, frame_size).permute(1, 0, 2).detach().numpy() 59 x_out = x_out[0].reshape(out_channels, num_frames, frame_size).permute(1, 0, 2).detach().numpy() 76 features = features[0].detach().numpy() 77 x_in = x_in[0].permute(1, 0).detach().numpy() 78 p_in = p_in[0].detach().numpy().astype(np.int32) 79 x_out = x_out[0].permute(1, 0).detach().numpy() 95 features = features[0].detach().numpy() 96 x_in = x_in.flatten().detach().numpy() 97 x_out = x_out.flatten().detach().numpy() [all …]
|
/aosp_15_r20/external/ltp/include/lapi/ |
H A D | shmbuf.h | 35 long shm_dtime; /* last detach time */ 49 unsigned long shm_dtime; /* last detach time */ 78 long shm_dtime; /* last detach time */ 85 unsigned long shm_dtime; /* last detach time */ 115 long shm_dtime; /* last detach time */ 122 unsigned long shm_dtime; /* last detach time */ 152 long shm_dtime; /* last detach time */ 159 unsigned long shm_dtime; /* last detach time */ 187 __kernel_long_t shm_dtime; /* last detach time */ 215 unsigned long shm_dtime; /* last detach time */ [all …]
|
/aosp_15_r20/external/llvm-libc/src/__support/threads/ |
H A D | thread.h | 62 // Detach type is useful in testing the detach operation. 64 // Indicates that the detach operation just set the detach state to DETACHED 68 // Indicates that the detach operation performed thread cleanup. 86 // call a detach or join function. Calling either of them can lead to 91 // with the value DetachState::JOINABLE. Another thread can detach this 93 // (a) If the detach method sees the state as JOINABLE, then it will 96 // (b) If the detach method does not see JOINABLE in (a), then it will 205 // Detach a joinable thread. 207 // This method does not have error return value. However, the type of detach 209 int detach();
|
/aosp_15_r20/external/pytorch/torch/ao/ns/fx/ |
H A D | weight_utils.py | 23 return mod.weight.detach() # type: ignore[operator] 27 return mod[0].weight.detach() # type: ignore[index] 38 param_value = mod._flat_weights[idx].detach() # type: ignore[index] 53 return mod.weight.detach() 55 return mod[0].weight.detach() 62 return mod.weight.detach() 64 return mod[0].weight.detach() 75 param_value = mod._flat_weights[idx].detach() 95 return weight.detach() 123 return weight.detach() [all …]
|
/aosp_15_r20/external/grpc-grpc-java/context/src/main/java/io/grpc/ |
H A D | Context.java | 44 * later exited by {@link #detach detaching} the Context. 74 * <li>Every {@code attach()} should have a {@code detach()} in the same method. And every 412 * <p>Instead of using {@code attach()} and {@link #detach(Context)} most use-cases are better 417 * <p>All calls to {@code attach()} should have a corresponding {@link #detach(Context)} within 423 * someContext.detach(previous); 439 * an {@code attach()} and a {@code detach()} meet above requirements, they match. 441 * <p>It is expected that between any pair of matching {@code attach()} and {@code detach()}, all 442 * {@code attach()}es and {@code detach()}es are called in matching pairs. If this method finds 445 * be bound. <strong>Never</strong> use {@code Context.current().detach()}, as this will 448 public void detach(Context toAttach) { in detach() method in Context [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/thread/doc/ |
D | scoped_thread.qbk | 15 struct detach; 39 //t1.detach(); // compile fails 41 t2.detach(); 49 struct detach; 54 [section:detach Functor `detach`] 56 struct detach 61 t.detach(); 221 void detach(); 416 [section:detach Member function `detach()`] 418 void detach(); [all …]
|
/aosp_15_r20/external/pytorch/torch/nn/parallel/ |
H A D | replicate.py | 94 detach: bool = False, 98 if detach: 101 # Use the autograd function to broadcast if not detach 118 detach: bool = False, 134 param_copies = _broadcast_coalesced_reshape(params, devices, detach) 140 if buf.requires_grad and not detach: 148 buffer_copies_rg = _broadcast_coalesced_reshape(buffers_rg, devices, detach=detach) 150 buffers_not_rg, devices, detach=True 202 if buf.requires_grad and not detach:
|
/aosp_15_r20/external/libopus/dnn/torch/fargan/ |
H A D | adv_train_fargan.py | 30 loss_feat += f * F.l1_loss(scores_gen[k][l], scores_real[k][l].detach()) 195 scores_gen = disc(output.detach().unsqueeze(1)) 201 m_f = 0.9 * m_f + 0.1 * scale[-1].detach().mean().cpu().item() 202 s_f = 0.9 * s_f + 0.1 * scale[-1].detach().std().cpu().item() 206 m_r = 0.9 * m_r + 0.1 * scale[-1].detach().mean().cpu().item() 207 s_r = 0.9 * s_r + 0.1 * scale[-1].detach().std().cpu().item() 224 specc_loss = spect_loss(output, target.detach()) 247 running_cont_loss += cont_loss.detach().cpu().item() 248 running_gen_loss += loss_gen.detach().cpu().item() 249 running_disc_loss += disc_loss.detach().cpu().item() [all …]
|
/aosp_15_r20/external/javassist/src/test/javassist/ |
H A D | ClassPoolBench.java | 8 static boolean mod = false, detach = false, readonly = false; field in ClassPoolBench 17 if (detach) in accessClass() 23 if (detach) in accessClass() 24 cc.detach(); in accessClass() 49 else if (args[1].equals("detach")) in main() 50 mod = detach = true; in main() 54 System.err.println("mod: " + mod + " detach: " + detach in main()
|
/aosp_15_r20/external/pytorch/test/profiler/ |
H A D | test_memory_profiler.py | 419 ("aten::detach.", (False,)), 420 ("detach", (None,)), 1168 …aten::detach 21 (GRADIENT) -> 21 (GRAD… 1169 … aten::detach 21 (GRADIENT) -> ??? 1173 …aten::detach 23 (GRADIENT) -> 23 (GRAD… 1174 … aten::detach 23 (GRADIENT) -> ???""", 1220 …aten::detach 21 (GRADIENT) -> 21 (GRAD… 1221 …aten::detach 21 (GRADIENT) -> 21 (GRAD… 1225 …aten::detach 23 (GRADIENT) -> 23 (GRAD… 1226 …aten::detach 23 (GRADIENT) -> 23 (GRAD… [all …]
|