Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,058 for switch3 (0.17 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/tensorflow/tests/graphdef2mlir/switch_n.pbtxt

    # CHECK: tf_executor._SwitchN
    # CHECK-SAME: of 3 : tensor<*xi32>
    # CHECK-SAME: T = i32
    # CHECK-SAME: loc(fused["_SwitchN:", "Case/branch_index/_3"])
    # CHECK: tf_executor._SwitchN
    # CHECK-SAME: of 2 : tensor<*xf32>
    # CHECK-SAME: T = f32
    # CHECK-SAME: loc(fused["_SwitchN:", "Case/Case/input_0/_7"])
    
    node {
      name: "Case/branch_index"
      op: "Const"
      attr {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 15 19:42:47 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/internal/gover/toolchain.go

    func (e *TooNewError) Is(err error) bool {
    	return err == ErrTooNew
    }
    
    // A Switcher provides the ability to switch to a new toolchain in response to TooNewErrors.
    // See [cmd/go/internal/toolchain.Switcher] for documentation.
    type Switcher interface {
    	Error(err error)
    	Switch(ctx context.Context)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/compile/internal/test/switch_test.go

    		rng = rng.next(predictable)
    		switch a[rng.value()&7].(type) {
    		case SI0:
    			n += 1
    		case SI1:
    			n += 2
    		case SI2:
    			n += 3
    		case SI3:
    			n += 4
    		case SI4:
    			n += 5
    		case SI5:
    			n += 6
    		case SI6:
    			n += 7
    		case SI7:
    			n += 8
    		}
    	}
    	sink = n
    }
    
    // A simple random number generator used to make switches conditionally predictable.
    type rng uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top