Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for NP (0.02 sec)

  1. tools/bug-report/pkg/filter/filter.go

    			return nil, fmt.Errorf("bad node type at path %s: got %T, expected string", n, cn)
    		}
    		if len(np) != 4 {
    			return nil, fmt.Errorf("unexpected leaf at path %s, expect leaf path to be namespace.deployment.pod.container", np)
    		}
    		if matchesKubeCaptureConfig(config, cluster, np[0], np[1], np[2], np[3]) {
    			matchingPaths[np.String()] = struct{}{}
    		}
    	}
    	return matchingPaths, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 23:42:29 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. src/sync/atomic/value.go

    			continue
    		}
    		// First store completed. Check type and overwrite data.
    		if typ != np.typ {
    			panic("sync/atomic: swap of inconsistently typed value into Value")
    		}
    		op := (*efaceWords)(unsafe.Pointer(&old))
    		op.typ, op.data = np.typ, SwapPointer(&vp.data, np.data)
    		return old
    	}
    }
    
    // CompareAndSwap executes the compare-and-swap operation for the [Value].
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. test/fixedbugs/issue46304.go

    	_q    [20]uint64
    	plist []P
    }
    
    type P struct {
    	tag string
    	_x  [10]uint64
    	b   bool
    }
    
    type M int
    
    //go:noinline
    func (w *M) walkP(p *P) *P {
    	np := &P{}
    	*np = *p
    	np.tag += "new"
    	return np
    }
    
    func (w *M) walkOp(op *Op) *Op {
    	if op == nil {
    		return nil
    	}
    
    	orig := op
    	cloned := false
    	clone := func() {
    		if !cloned {
    			cloned = true
    			op = &Op{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 22 00:51:17 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  4. test/interface/receiver.go

    // Test Implicit methods for embedded types and
    // mixed pointer and non-pointer receivers.
    
    package main
    
    type T int
    
    var nv, np int
    
    func (t T) V() {
    	if t != 42 {
    		panic(t)
    	}
    	nv++
    }
    
    func (t *T) P() {
    	if *t != 42 {
    		println(t, *t)
    		panic("fail")
    	}
    	np++
    }
    
    type V interface {
    	V()
    }
    type P interface {
    	P()
    	V()
    }
    
    type S struct {
    	T
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:33:41 UTC 2012
    - 1.3K bytes
    - Viewed (0)
  5. pkg/apis/networking/fuzzer/fuzzer.go

    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(np *networking.NetworkPolicyPeer, c fuzz.Continue) {
    			c.FuzzNoCustom(np) // fuzz self without calling this function again
    			// TODO: Implement a fuzzer to generate valid keys, values and operators for
    			// selector requirements.
    			if np.IPBlock != nil {
    				np.IPBlock = &networking.IPBlock{
    					CIDR:   "192.168.1.0/24",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. test/escape_calls.go

    type Node struct {
    	s           string
    	left, right *Node
    }
    
    func walk(np **Node) int { // ERROR "leaking param content: np"
    	n := *np
    	w := len(n.s)
    	if n == nil {
    		return 0
    	}
    	wl := walk(&n.left)
    	wr := walk(&n.right)
    	if wl < wr {
    		n.left, n.right = n.right, n.left // ERROR "ignoring self-assignment"
    		wl, wr = wr, wl
    	}
    	*np = n
    	return w + wl + wr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 22:06:07 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/testdata/mergelocals/integration.go

    type Pointery2 struct {
    	p *Pointery2
    	x [1024]int
    }
    
    // This type and the following one will have the same size.
    type Vanilla struct {
    	np uintptr
    	x  [1024]int
    }
    
    type Vanilla2 struct {
    	np uintptr
    	x  [1023]int
    	y  int
    }
    
    type Single struct {
    	np uintptr
    	x  [1023]int
    }
    
    var G int
    
    //go:noinline
    func clobber() {
    	G++
    }
    
    func ABC(i, j int) int {
    	r := 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 17:42:19 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm_test.py

        statistics = calib_stats_pb2.CalibrationStatistics()
        statistics.histogram_statistics.lower_bound = 0.0
        statistics.histogram_statistics.bin_width = 1.0
    
        hist_freq = np.zeros(501, dtype=np.int32)
    
        # Advanced calibration methods that use histograms detect outliers, so they
        # don't use the outliers as min/max values.
        hist_freq[0] = 1
        hist_freq[-1] = 1
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go

    	}
    
    	f := &File{
    		Meta:  make(map[string]string),
    		Count: make(map[string]uint64),
    	}
    	np := round(len(hdrPrefix), 4)
    	hdrLen := *(*uint32)(unsafe.Pointer(&data[np]))
    	if hdrLen > pageSize {
    		return corrupt()
    	}
    	meta := data[np+4 : hdrLen]
    	if i := bytes.IndexByte(meta, 0); i >= 0 {
    		meta = meta[:i]
    	}
    	m := &mappedFile{
    		meta:    string(meta),
    		hdrLen:  hdrLen,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 14:38:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py

            return {'output': res}
    
        def data_gen():
          for _ in range(255):
            yield {
                'x': ops.convert_to_tensor(
                    np.random.uniform(size=(10)).astype('f4')
                ),
                'y': ops.convert_to_tensor(
                    np.random.uniform(size=(10)).astype('f4')
                ),
            }
    
        root = ModelWithAdd()
    
        temp_path = self.create_tempdir().full_path
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top