Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 35 for rfind (0.06 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

    ) -> Mapping[str, node_def_pb2.NodeDef]:
      """Finds all variables within `graph_def`.
    
      This function makes sense for TF 1 graphs only, as it depends on
      `shared_name`.
    
      Args:
        graph_def: `GraphDef` to find variables from.
    
      Returns:
        A mapping of `shared_name` -> `NodeDef` corresponding to a variable op.
      """
      variable_nodes = {}
    
      for var_node in filter(_is_variable, graph_def.node):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet_test.go

    		kubelet.handlePodResourcesResize(tt.pod)
    		updatedPod, found := kubelet.podManager.GetPodByName(tt.pod.Namespace, tt.pod.Name)
    		assert.True(t, found, "expected to find pod %s", tt.pod.Name)
    		assert.Equal(t, tt.expectedAllocations, updatedPod.Status.ContainerStatuses[0].AllocatedResources, tt.name)
    		assert.Equal(t, tt.expectedResize, updatedPod.Status.Resize, tt.name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    	m, ok := typ.MethodByName("M")
    	if !ok {
    		t.Fatalf("cannot find method M")
    	}
    	in := []Value{ValueOf(v)}
    	out := m.Func.Call(in)
    	if got := out[0].Int(); got != 42 {
    		t.Errorf("Call with value receiver got %d, want 42", got)
    	}
    
    	pv := &v
    	typ = TypeOf(pv)
    	m, ok = typ.MethodByName("M")
    	if !ok {
    		t.Fatalf("cannot find method M")
    	}
    	in = []Value{ValueOf(pv)}
    	out = m.Func.Call(in)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. src/reflect/value.go

    	"unsafe"
    )
    
    // Value is the reflection interface to a Go value.
    //
    // Not all methods apply to all kinds of values. Restrictions,
    // if any, are noted in the documentation for each method.
    // Use the Kind method to find out the kind of value before
    // calling kind-specific methods. Calling a method
    // inappropriate to the kind of type causes a run time panic.
    //
    // The zero Value represents no value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  5. src/net/http/serve_test.go

    		})
    
    		pr, pw := io.Pipe()
    		res, err := cst.c.Post(cst.ts.URL, "text/plain", pr)
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer res.Body.Close()
    
    		// TODO(panjf2000): sleep is not so robust, maybe find a better way to test this?
    		time.Sleep(10 * time.Millisecond) // stall sending body to server to test server doesn't time out
    		pw.Write([]byte(reqBody))
    		pw.Close()
    
    		got, err := io.ReadAll(res.Body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  6. pkg/api/pod/util_test.go

    			field := tp.Field(i)
    			resourcePaths.Insert(sets.List[string](collectResourcePaths(t, resourcename, path.Child(field.Name), field.Name, field.Type))...)
    		}
    	case reflect.Interface:
    		t.Errorf("cannot find %s fields in interface{} field %s", resourcename, path.String())
    	case reflect.Map:
    		resourcePaths.Insert(sets.List[string](collectResourcePaths(t, resourcename, path.Key("*"), "", tp.Elem()))...)
    	case reflect.Slice:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    	healing, _ := getAggregatedBackgroundHealState(ctx, nil)
    	healDisks := make(map[string]struct{}, len(healing.HealDisks))
    	for _, disk := range healing.HealDisks {
    		healDisks[disk] = struct{}{}
    	}
    
    	// find all disks which belong to each respective endpoints
    	for i, disk := range storageInfo.Disks {
    		if _, ok := healDisks[disk.Endpoint]; ok {
    			storageInfo.Disks[i].Healing = true
    		}
    	}
    
    	// Marshal API response
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  8. pkg/controller/job/job_controller_test.go

    		if err != nil {
    			t.Errorf("Error getting namespace/name from key %v: %v", key, err)
    		}
    		job, err := manager.jobLister.Jobs(ns).Get(name)
    		if err != nil || job == nil {
    			t.Errorf("Expected to find job under key %v: %v", key, err)
    			return nil
    		}
    		if !apiequality.Semantic.DeepDerivative(*job, testJob) {
    			t.Errorf("Expected %#v, but got %#v", testJob, *job)
    		}
    		return nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    	if err != nil {
    		t.Fatalf("Get: %v", err)
    	}
    	defer res.Body.Close()
    
    	// Just a sanity check that we at least get the response. The real
    	// test here is that the "defer afterTest" above doesn't find any
    	// leaked goroutines.
    	if got, want := res.Header.Get("Foo"), "Bar"; got != want {
    		t.Errorf("Foo header = %q; want %q", got, want)
    	}
    }
    
    type closerFunc func() error
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  10. pkg/config/validation/validation.go

    		return fmt.Errorf("header value configuration %s is invalid", value)
    	}
    
    	if err := validateHeaderValue(value); err != nil {
    		return fmt.Errorf("header value configuration: %w", err)
    	}
    
    	// TODO: find a better way to validate fields supported in custom header, e.g %ENVIRONMENT(X):Z%
    
    	return nil
    }
    
    // validateWeight checks if weight is valid
    func validateWeight(weight int32) error {
    	if weight < 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top