- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 879 for RES (0.02 sec)
-
pkg/lazy/lazy_test.go
l := NewWithRetry(func() (int32, error) { res := computations.Inc() if res > 2 { return res, nil } return res, fmt.Errorf("not yet") }) res, err := l.Get() assert.Error(t, err) assert.Equal(t, res, 1) res, err = l.Get() assert.Error(t, err) assert.Equal(t, res, 2) res, err = l.Get() assert.NoError(t, err) assert.Equal(t, res, 3) })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 17:36:41 UTC 2023 - 3K bytes - Viewed (0) -
bin/diff_yaml.py
return res except KeyError as ke: if 'spec' in str(ke) or 'ports' in str(ke) or 'port' in str(ke): return res raise def normalize_res(res, args): if not res: return res if args.ignore_labels: drop_keys(res, "metadata", "labels") if args.ignore_namespace: drop_keys(res, "metadata", "namespace") res = normalize_ports(res)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 03 16:14:57 UTC 2021 - 4.5K bytes - Viewed (0) -
src/net/http/httptest/example_test.go
ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintln(w, "Hello, client") })) defer ts.Close() res, err := http.Get(ts.URL) if err != nil { log.Fatal(err) } greeting, err := io.ReadAll(res.Body) res.Body.Close() if err != nil { log.Fatal(err) } fmt.Printf("%s", greeting) // Output: Hello, client } func ExampleServer_hTTP2() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions_fusion.td
(ArgumentList $lhs, $rhs, $bias), (ResultList $res), (NamedAttributeList (NamedAttr<"dot_dimension_numbers"> $dot_dimension_numbers), (NamedAttr<"precision_config"> (DefaultOrNullAttr $precision_config)))), [(IsNotInLiftedFunc $res), (IsStableHLOConstantOp $bias)], [], (addBenefit 5)>; def LiftConvWithBiasDynamic : Pat< (StableHLO_AddOp:$res
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 04 07:19:09 UTC 2024 - 23.6K bytes - Viewed (0) -
pilot/pkg/xds/sds.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 15 23:04:36 UTC 2024 - 15.8K bytes - Viewed (0) -
src/net/http/filetransport_test.go
for _, urlstr := range fooURLs { res, err := c.Get(urlstr) check("Get "+urlstr, err) if res.StatusCode != 200 { t.Errorf("for %s, StatusCode = %d, want 200", urlstr, res.StatusCode) } if res.ContentLength != -1 { t.Errorf("for %s, ContentLength = %d, want -1", urlstr, res.ContentLength) } if res.Body == nil { t.Fatalf("for %s, nil Body", urlstr) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 17:07:12 UTC 2023 - 2.6K bytes - Viewed (0) -
pilot/pkg/xds/statusgen.go
res, detail, err := sg.handleInternalRequest(proxy, w, req) return res, nil, detail, true, err } func (sg *StatusGen) handleInternalRequest(_ *model.Proxy, w *model.WatchedResource, _ *model.PushRequest) (model.Resources, model.XdsLogDetails, error) { res := model.Resources{} switch w.TypeUrl { case TypeDebugSyncronization: res = sg.debugSyncz() case TypeDebugConfigDump:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 10 23:30:28 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/api/v1/service/util_test.go
} func TestExternallyAccessible(t *testing.T) { checkExternallyAccessible := func(expect bool, service *v1.Service) { t.Helper() res := ExternallyAccessible(service) if res != expect { t.Errorf("Expected ExternallyAccessible = %v, got %v", expect, res) } } checkExternallyAccessible(false, &v1.Service{}) checkExternallyAccessible(false, &v1.Service{ Spec: v1.ServiceSpec{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 01 15:18:45 UTC 2023 - 8.8K bytes - Viewed (0) -
src/runtime/complex_test.go
res := 0i for i := 0; i < b.N; i++ { d += 0.1i res += n / d } result = res } func BenchmarkComplex128DivNisInf(b *testing.B) { d := 15 + 2i n := cmplx.Inf() res := 0i for i := 0; i < b.N; i++ { d += 0.1i res += n / d } result = res } func BenchmarkComplex128DivDisInf(b *testing.B) { d := cmplx.Inf() n := 32 + 3i res := 0i for i := 0; i < b.N; i++ { n += 0.1i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/localize_var_handles.mlir
"tf.Yield"(%cond, %ca, %cb, %cc) : (tensor<i1>, !res, !res, !res) -> () }, { ^bb0(%ba: !res, %bb: !res, %bc: !res): "tf.Yield"(%bb, %bc, %ba) : (!res, !res, !res) -> () }) { is_stateless = false} : (!res, !res, !res) -> (!res, !res, !res) %3 = "tf.ReadVariableOp"(%2) : (!res) -> tensor<10xf32> return }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 23 21:12:02 UTC 2023 - 10.3K bytes - Viewed (0)