Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,191 for switchn (0.15 sec)

  1. src/net/internal/socktest/switch.go

    package socktest
    
    import (
    	"fmt"
    	"sync"
    )
    
    // A Switch represents a callpath point switch for socket system
    // calls.
    type Switch struct {
    	once sync.Once
    
    	fmu   sync.RWMutex
    	fltab map[FilterType]Filter
    
    	smu   sync.RWMutex
    	sotab Sockets
    	stats stats
    }
    
    func (sw *Switch) init() {
    	sw.fltab = make(map[FilterType]Filter)
    	sw.sotab = make(Sockets)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  2. src/internal/abi/switch.go

    	if !go122InterfaceSwitchCache {
    		return false
    	}
    	// We need an atomic load instruction to make the cache multithreaded-safe.
    	// (AtomicLoadPtr needs to be implemented in cmd/compile/internal/ssa/_gen/ARCH.rules.)
    	switch goarch {
    	case "amd64", "arm64", "loong64", "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x":
    		return true
    	default:
    		return false
    	}
    }
    
    type TypeAssert struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/end2end/control_flow_v1.pbtxt

        }
      }
    }
    node {
      name: "cond/Switch"
      op: "Switch"
      input: "Placeholder_1"
      input: "Placeholder_1"
      attr {
        key: "T"
        value {
          type: DT_BOOL
        }
      }
    }
    node {
      name: "cond/switch_t"
      op: "Identity"
      input: "cond/Switch:1"
      attr {
        key: "T"
        value {
          type: DT_BOOL
        }
      }
    }
    node {
      name: "cond/switch_f"
      op: "Identity"
      input: "cond/Switch"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 23 21:23:31 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  4. src/go/scanner/scanner.go

    		case '=':
    			tok = s.switch2(token.ASSIGN, token.EQL)
    		case '!':
    			tok = s.switch2(token.NOT, token.NEQ)
    		case '&':
    			if s.ch == '^' {
    				s.next()
    				tok = s.switch2(token.AND_NOT, token.AND_NOT_ASSIGN)
    			} else {
    				tok = s.switch3(token.AND, token.AND_ASSIGN, '&', token.LAND)
    			}
    		case '|':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  5. src/runtime/coro.go

    	mcall(coroswitch_m)
    }
    
    //go:linkname coroswitch
    
    // coroswitch switches to the goroutine blocked on c
    // and then blocks the current goroutine on c.
    func coroswitch(c *coro) {
    	gp := getg()
    	gp.coroarg = c
    	mcall(coroswitch_m)
    }
    
    // coroswitch_m is the implementation of coroswitch
    // that runs on the m stack.
    //
    // Note: Coroutine switches are expected to happen at
    // an order of magnitude (or more) higher frequency
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:18 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

          %switch:3 = "tf_executor.Switch"(%island#0, %arg2) : (tensor<?x?x?xf32>, tensor<i1>) -> (tensor<?x?x?xf32>, tensor<?x?x?xf32>, !tf_executor.control)
          %switchn:3 = "tf_executor._SwitchN"(%island#0, %arg3) {num_outs = 2} : (tensor<?x?x?xf32>, tensor<i32>) -> (tensor<?x?x?xf32>, tensor<?x?x?xf32>, !tf_executor.control)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/netns_linux.go

    			return fmt.Errorf("failed to open current netns: %v", err)
    		}
    		defer threadNS.Close()
    
    		// switch to target namespace
    		if err = NetnsSet(fdable); err != nil {
    			return err
    		}
    		defer func() {
    			err := threadNS.Set() // switch back
    			if err == nil {
    				// Unlock the current thread only when we successfully switched back
    				// to the original namespace; otherwise leave the thread locked which
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 31 10:05:36 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/cmd/gofmt/testdata/typeswitch.input

    type switch header or in the case.
    
    See also issue 4470.
    */
    package p
    
    func f() {
    	var x interface{}
    	switch x.(type) { // should remain the same
    	}
    	switch (x.(type)) { // should become: switch x.(type) {
    	}
    
    	switch x.(type) { // should remain the same
    	case int:
    	}
    	switch (x.(type)) { // should become: switch x.(type) {
    	case int:
    	}
    
    	switch x.(type) { // should remain the same
    	case []int:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 15 17:17:30 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/toolchain/select.go

    	// and TESTGO_VERSION_SWITCH=switch is set,
    	// "switch" toolchains by changing TESTGO_VERSION
    	// and reinvoking the current binary.
    	// The special cases =loop and =mismatch skip the
    	// setting of TESTGO_VERSION so that it looks like we
    	// accidentally invoked the wrong toolchain,
    	// to test detection of that failure mode.
    	switch TestVersionSwitch {
    	case "switch":
    		os.Setenv("TESTGO_VERSION", gotoolchain)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/merge_node_with_function.pbtxt

          type: DT_BOOL
        }
      }
    }
    node {
      name: "Switch0"
      op: "Switch"
      input: "input"
      input: "input"
      attr {
        key: "T"
        value {
          type: DT_BOOL
        }
      }
    }
    node {
      name: "func0"
      op: "func_name"
      input: "Switch0:1"
    }
    node {
      name: "Merge"
      op: "Merge"
      input: "Switch0:1"
      input: "Switch0"
      input: "^func0"
      attr {
        key: "N"
        value {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 14 20:47:36 UTC 2021
    - 1K bytes
    - Viewed (0)
Back to top