Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 661 for func4 (0.06 sec)

  1. src/net/resolverdialfunc_test.go

    	StartDial func(network, address string) error
    
    	Question func(dnsmessage.Header, dnsmessage.Question)
    
    	// err may be ErrNotExist or ErrRefused; others map to SERVFAIL (RCode2).
    	// A nil error means success.
    	HandleA    func(w AWriter, name string) error
    	HandleAAAA func(w AAAAWriter, name string) error
    	HandleSRV  func(w SRVWriter, name string) error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. pkg/zdsapi/zds.pb.go

    		"NOT_USED": 0,
    		"V1":       1,
    	}
    )
    
    func (x Version) Enum() *Version {
    	p := new(Version)
    	*p = x
    	return p
    }
    
    func (x Version) String() string {
    	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
    }
    
    func (Version) Descriptor() protoreflect.EnumDescriptor {
    	return file_zdsapi_zds_proto_enumTypes[0].Descriptor()
    }
    
    func (Version) Type() protoreflect.EnumType {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 02:27:10 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/cbor_test.go

    }
    
    func (p anyObject) MarshalCBOR() ([]byte, error) {
    	return modes.Encode.Marshal(p.Value)
    }
    
    func (p *anyObject) UnmarshalCBOR(in []byte) error {
    	return modes.Decode.Unmarshal(in, &p.Value)
    }
    
    func TestEncode(t *testing.T) {
    	for _, tc := range []struct {
    		name           string
    		in             runtime.Object
    		assertOnWriter func() (io.Writer, func(*testing.T))
    		assertOnError  func(*testing.T, error)
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 14:57:12 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/watch/watch.go

    func (f *FakeWatcher) Add(obj runtime.Object) {
    	f.result <- Event{Added, obj}
    }
    
    // Modify sends a modify event.
    func (f *FakeWatcher) Modify(obj runtime.Object) {
    	f.result <- Event{Modified, obj}
    }
    
    // Delete sends a delete event.
    func (f *FakeWatcher) Delete(lastValue runtime.Object) {
    	f.result <- Event{Deleted, lastValue}
    }
    
    // Error sends an Error event.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 20:06:22 UTC 2024
    - 8.1K bytes
    - Viewed (1)
  5. src/slices/iter.go

    // The indexes range in the usual order, from 0 through len(s)-1.
    func All[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
    	return func(yield func(int, E) bool) {
    		for i, v := range s {
    			if !yield(i, v) {
    				return
    			}
    		}
    	}
    }
    
    // Backward returns an iterator over index-value pairs in the slice,
    // traversing it backward. The indexes range from len(s)-1 down to 0.
    func Backward[Slice ~[]E, E any](s Slice) iter.Seq2[int, E] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:40:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. pkg/util/net/ip_test.go

    		name string
    		ips  []string
    		ipv4 func() []netip.Addr
    		ipv6 func() []netip.Addr
    	}{
    		{
    			name: "include valid and invalid ip addresses",
    			ips:  []string{"1.0.0.0", "256.255.255.255", "localhost", "::1", "2001:db8:::1"},
    			ipv4: func() []netip.Addr {
    				ip, _ := netip.ParseAddr("1.0.0.0")
    				return []netip.Addr{ip}
    			},
    			ipv6: func() []netip.Addr {
    				ip, _ := netip.ParseAddr("::1")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. test/codegen/comparisons.go

    func CmpMem3(p *int) bool {
    	// amd64:`CMPQ\t\(.*\), [$]7`
    	return *p < 7
    }
    
    func CmpMem4(p *int) bool {
    	// amd64:`CMPQ\t\(.*\), [$]7`
    	return 7 < *p
    }
    
    func CmpMem5(p **int) {
    	// amd64:`CMPL\truntime.writeBarrier\(SB\), [$]0`
    	*p = nil
    }
    
    func CmpMem6(a []int) int {
    	// 386:`CMPL\s8\([A-Z]+\),`
    	// amd64:`CMPQ\s16\([A-Z]+\),`
    	if a[1] > a[2] {
    		return 1
    	} else {
    		return 2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. src/internal/poll/fd_plan9.go

    // This is only used for testing.
    func IsPollDescriptor(fd uintptr) bool {
    	return false
    }
    
    // RawControl invokes the user-defined function f for a non-IO
    // operation.
    func (fd *FD) RawControl(f func(uintptr)) error {
    	return errors.New("not implemented")
    }
    
    // RawRead invokes the user-defined function f for a read operation.
    func (fd *FD) RawRead(f func(uintptr) bool) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize.cc

      // the best quantization practice. This also fixes some simple violations.
      void SanityCheckAndAdjustment(func::FuncOp func);
    
      // Whether the func contains Quantize ops. This is used to determine whether
      // to use the quantization parameters from the fixed output range property.
      bool ContainsQuantizeOps(func::FuncOp func);
    
      QuantizationSpecs quant_specs_;
    
      Option<bool> enable_post_training_quantize_{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/optimize_no_verify.mlir

    // CHECK:  return %[[V1]] : tensor<32x1x256xbf16>
    }
    
    // CHECK-LABEL: Relu_bf16
    func.func @Relu_bf16(%arg0: tensor<2x3xbf16>) -> tensor<2x3xbf16> {
      %cst = arith.constant dense<0.0> : tensor<2x3xbf16>
      %0 = "tfl.maximum"(%arg0, %cst) : (tensor<2x3xbf16>, tensor<2x3xbf16>) -> tensor<2x3xbf16>
      func.return %0 : tensor<2x3xbf16>
    
      // CHECK: %[[RESULT:.*]] = "tfl.relu"(%arg0)
      // CHECK: return %[[RESULT]]
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top