Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for add_func (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

          *list->add_tensor() = tensor;
        } else if (auto attr = mlir::dyn_cast<mlir::FlatSymbolRefAttr>(a)) {
          AttrValue attr_val;
          TF_RETURN_IF_ERROR(ConvertAttribute(attr, &attr_val));
          *list->add_func() = attr_val.func();
        } else if (auto attr = mlir::dyn_cast<mlir::TypeAttr>(a)) {
          AttrValue attr_val;
          // For type attributes, we only propagate the element type.
          mlir::Type elt_type = attr.getValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt.go

    		// AddFunc calls), then we could not definitively select the
    		// correct callee.
    		val += int(ops.m(42, int64(ops.a(1, 2))))
    	}
    	return val
    }
    
    //go:noinline
    func AddClosure() AddFunc {
    	// Implicit closure by capturing the receiver.
    	var a Add
    	return a.Add
    }
    
    //go:noinline
    func SubClosure() AddFunc {
    	var s Sub
    	return s.Add
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:57 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. src/net/sock_posix.go

    	lsa, _ = syscall.Getsockname(fd.pfd.Sysfd)
    	if crsa != nil {
    		fd.setAddr(fd.addrFunc()(lsa), fd.addrFunc()(crsa))
    	} else if rsa, _ = syscall.Getpeername(fd.pfd.Sysfd); rsa != nil {
    		fd.setAddr(fd.addrFunc()(lsa), fd.addrFunc()(rsa))
    	} else {
    		fd.setAddr(fd.addrFunc()(lsa), raddr)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. plugin/pkg/auth/authorizer/node/graph_populator.go

    		AddFunc:    g.addPod,
    		UpdateFunc: g.updatePod,
    		DeleteFunc: g.deletePod,
    	})
    
    	pvsHandler, _ := pvs.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc:    g.addPV,
    		UpdateFunc: g.updatePV,
    		DeleteFunc: g.deletePV,
    	})
    
    	attachHandler, _ := attachments.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{
    		AddFunc:    g.addVolumeAttachment,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. pkg/kube/controllers/common.go

    type EventHandler[T Object] struct {
    	AddFunc         func(obj T)
    	AddExtendedFunc func(obj T, initialSync bool)
    	UpdateFunc      func(oldObj, newObj T)
    	DeleteFunc      func(obj T)
    }
    
    func (e EventHandler[T]) OnAdd(obj interface{}, initialSync bool) {
    	if e.AddExtendedFunc != nil {
    		e.AddExtendedFunc(Extract[T](obj), initialSync)
    	} else if e.AddFunc != nil {
    		e.AddFunc(Extract[T](obj))
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 11 08:27:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. src/net/file_unix.go

    	default:
    		poll.CloseFunc(s)
    		return nil, syscall.EPROTONOSUPPORT
    	}
    	fd, err := newFD(s, family, sotype, "")
    	if err != nil {
    		poll.CloseFunc(s)
    		return nil, err
    	}
    	laddr := fd.addrFunc()(lsa)
    	raddr := fd.addrFunc()(rsa)
    	fd.net = laddr.Network()
    	if err := fd.init(); err != nil {
    		fd.Close()
    		return nil, err
    	}
    	fd.setAddr(laddr, raddr)
    	return fd, nil
    }
    
    func fileConn(f *os.File) (Conn, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/net/sockaddr_posix.go

    	// nil.
    	sockaddr(family int) (syscall.Sockaddr, error)
    
    	// toLocal maps the zero address to a local system address (127.0.0.1 or ::1)
    	toLocal(net string) sockaddr
    }
    
    func (fd *netFD) addrFunc() func(syscall.Sockaddr) Addr {
    	switch fd.family {
    	case syscall.AF_INET, syscall.AF_INET6:
    		switch fd.sotype {
    		case syscall.SOCK_STREAM:
    			return sockaddrToTCP
    		case syscall.SOCK_DGRAM:
    			return sockaddrToUDP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library.mlir

          {"quantized_ops": ["${main_op}", "Relu6"], "act_func": "internal_requantize_and_relu6_fn", "output_type": "i8"},
          {"quantized_ops": ["${main_op}"], "act_func": "internal_dequantize_no_activation_fn", "output_type": "f32"},
          {"quantized_ops": ["${main_op}", "Relu"], "act_func": "internal_dequantize_and_relu_fn", "output_type": "f32"},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 08 01:16:10 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library_uniform_quantized.mlir

        parameters[
          {"quantized_ops": ["${main_op}", "BiasAdd"], "act_func": "internal_requantize_no_activation_fn", "output_type": "!tf_type.qint8"},
          {"quantized_ops": ["${main_op}", "BiasAdd", "Relu"], "act_func": "internal_requantize_and_relu_fn", "output_type": "!tf_type.qint8"},
          {"quantized_ops": ["${main_op}", "BiasAdd", "Relu6"], "act_func": "internal_requantize_and_relu6_fn", "output_type": "!tf_type.qint8"},
        ]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 29 01:13:58 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/testdata/pgo/devirtualize/mult.pkg/mult.go

    		sink++
    	}
    	return a * b
    }
    
    type NegMult struct{}
    
    func (NegMult) Multiply(a, b int) int {
    	for i := 0; i < 1000; i++ {
    		sink++
    	}
    	return -1 * a * b
    }
    
    // N.B. Different types than AddFunc to test intra-line disambiguation.
    type MultFunc func(int64, int64) int64
    
    func MultFn(a, b int64) int64 {
    	for i := 0; i < 1000; i++ {
    		sink++
    	}
    	return a * b
    }
    
    func NegMultFn(a, b int64) int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:57 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top