Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 863 for Fn (0.02 sec)

  1. pkg/util/async/bounded_frequency_runner.go

    //
    // Examples:
    //
    // NewBoundedFrequencyRunner("name", fn, time.Second, 5*time.Second, 1)
    // - fn will have at least 1 second between runs
    // - fn will have no more than 5 seconds between runs
    //
    // NewBoundedFrequencyRunner("name", fn, 3*time.Second, 10*time.Second, 3)
    // - fn will have at least 3 seconds between runs, with up to 3 burst runs
    // - fn will have no more than 10 seconds between runs
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 15 09:36:26 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  2. src/debug/gosym/symtab.go

    				pcln = fn.LineTable
    			}
    			for j := i; j < end; j++ {
    				s := &t.Syms[j]
    				switch s.Type {
    				case 'm':
    					fn.FrameSize = int(s.Value)
    				case 'p':
    					n := len(fn.Params)
    					fn.Params = fn.Params[0 : n+1]
    					fn.Params[n] = s
    				case 'a':
    					n := len(fn.Locals)
    					fn.Locals = fn.Locals[0 : n+1]
    					fn.Locals[n] = s
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ctrlflow/ctrlflow.go

    	// cases the answer is definite. We let ctrlflow figure
    	// that out.
    	fn := typeutil.StaticCallee(c.pass.TypesInfo, call)
    	if fn == nil {
    		return true // callee not statically known; be conservative
    	}
    
    	// Function or method declared in this package?
    	if di, ok := c.funcDecls[fn]; ok {
    		c.buildDecl(fn, di)
    		return !di.noReturn
    	}
    
    	// Not declared in this package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  4. test/fixedbugs/bug389.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 2563
    package foo
    
    func fn(a float32) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 22:28:39 UTC 2022
    - 368 bytes
    - Viewed (0)
  5. tensorflow/cc/framework/grad_op_registry.h

    #define REGISTER_GRADIENT_OP(name, fn) \
      REGISTER_GRADIENT_OP_UNIQ_HELPER(__COUNTER__, name, fn)
    
    #define REGISTER_NO_GRADIENT_OP(name) \
      REGISTER_GRADIENT_OP_UNIQ_HELPER(__COUNTER__, name, nullptr)
    
    #define REGISTER_GRADIENT_OP_UNIQ_HELPER(ctr, name, fn) \
      REGISTER_GRADIENT_OP_UNIQ(ctr, name, fn)
    
    #define REGISTER_GRADIENT_OP_UNIQ(ctr, name, fn) \
      static bool unused_ret_val_##ctr =             \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 15:33:58 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  6. src/net/rawconn_unix_test.go

    			}
    		}
    	}
    	if err := c.Control(fn); err != nil {
    		return err
    	}
    	return operr
    }
    
    func controlOnConnSetup(network string, address string, c syscall.RawConn) error {
    	var operr error
    	var fn func(uintptr)
    	switch network {
    	case "tcp", "udp", "ip":
    		return errors.New("ambiguous network: " + network)
    	case "unix", "unixpacket", "unixgram":
    		fn = func(s uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 3K bytes
    - Viewed (0)
  7. src/runtime/export_debug_test.go

    	"internal/stringslite"
    	"unsafe"
    )
    
    // InjectDebugCall injects a debugger call to fn into g. regArgs must
    // contain any arguments to fn that are passed in registers, according
    // to the internal Go ABI. It may be nil if no arguments are passed in
    // registers to fn. args must be a pointer to a valid call frame (including
    // arguments and return space) for fn, or nil. tkill must be a function that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  8. src/cmd/fix/main_test.go

    	"testing"
    )
    
    type testCase struct {
    	Name    string
    	Fn      func(*ast.File) bool
    	Version string
    	In      string
    	Out     string
    }
    
    var testCases []testCase
    
    func addTestCases(t []testCase, fn func(*ast.File) bool) {
    	// Fill in fn to avoid repetition in definitions.
    	if fn != nil {
    		for i := range t {
    			if t[i].Fn == nil {
    				t[i].Fn = fn
    			}
    		}
    	}
    	testCases = append(testCases, t...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/internal/fuzz/minimize_test.go

    	"testing"
    	"time"
    	"unicode"
    	"unicode/utf8"
    )
    
    func TestMinimizeInput(t *testing.T) {
    	type testcase struct {
    		name     string
    		fn       func(CorpusEntry) error
    		input    []any
    		expected []any
    	}
    	cases := []testcase{
    		{
    			name: "ones_byte",
    			fn: func(e CorpusEntry) error {
    				b := e.Values[0].([]byte)
    				ones := 0
    				for _, v := range b {
    					if v == 1 {
    						ones++
    					}
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 12 19:47:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  10. src/runtime/iface_test.go

    	tests := []struct {
    		name string
    		fn   func()
    	}{
    		{name: "E8", fn: func() { e = eight8 }},  // any byte-sized value does not allocate
    		{name: "E16", fn: func() { e = zero16 }}, // zero values do not allocate
    		{name: "E32", fn: func() { e = zero32 }},
    		{name: "E64", fn: func() { e = zero64 }},
    		{name: "Estr", fn: func() { e = zerostr }},
    		{name: "Eslice", fn: func() { e = zeroslice }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
Back to top