Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,177 for switch3 (0.12 sec)

  1. tensorflow/compiler/jit/deadness_analysis_test.cc

    }
    
    TEST(DeadnessAnalysisTest, AndOfOr) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      ops::Switch sw_0 = CreateSwitch(root, "0");
      ops::Switch sw_1 = CreateSwitch(root, "1");
      ops::Switch sw_2 = CreateSwitch(root, "2");
      ops::Switch sw_3 = CreateSwitch(root, "3");
    
      ops::Merge m0(root.WithOpName("m0"), {sw_0.output_false, sw_1.output_false});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/tensorflow/tests/breakup-islands.mlir

          tf_executor.yield %add, %less : tensor<*xi32>, tensor<i1>
        }
        %switch:3 = tf_executor.Switch %island0#0, %island0#1 : tensor<*xi32>
        %island1:2 = tf_executor.island {
          %add = "tf.Add"(%switch#0, %arg1) : (tensor<*xi32>, tensor<i32>) -> tensor<*xi32>
          %res = "tf.Print"(%add) { message = "add result 2" } : (tensor<*xi32>) -> (tensor<*xi32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 28.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

    }
    
    def TfExecutor_SwitchOp : TfExecutor_Op<"Switch",
        [ControlOperandsAfterAllData, HasParent<"GraphOp">,
         PredOpTrait<"data operand must be broadcastable to true result",
                     TF_OpIsBroadcastableToRes<0, 0>>,
         PredOpTrait<"data operand must be broadcastable to false result",
                     TF_OpIsBroadcastableToRes<0, 1>>]>{
      let summary = [{
        The "tf_executor.Switch" operation takes a data operand and a boolean
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/ifaceassert/ifaceassert.go

    			targets []ast.Expr          // interfaces T in v.(T)
    		)
    		switch n := n.(type) {
    		case *ast.TypeAssertExpr:
    			// take care of v.(type) in *ast.TypeSwitchStmt
    			if n.Type == nil {
    				return
    			}
    			assert = n
    			targets = append(targets, n.Type)
    		case *ast.TypeSwitchStmt:
    			// retrieve type assertion from type switch's 'assign' field
    			switch t := n.Assign.(type) {
    			case *ast.ExprStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modcmd/download.go

    	if haveExplicitArgs || modload.WorkFilePath() != "" {
    		var sw toolchain.Switcher
    		// Add errors to the Switcher in deterministic order so that they will be
    		// logged deterministically.
    		for _, m := range mods {
    			if erri, ok := downloadErrs.Load(m); ok {
    				sw.Error(erri.(error))
    			}
    		}
    		// Only call sw.Switch if it will actually switch.
    		// Otherwise, we may want to write the errors as JSON
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 19:32:39 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/toolchain/select.go

    	// of the current go.mod or go.work, and let "go run" or "go install"
    	// do the rest, including a toolchain switch.
    	// Our goal instead is, since we have gone to the trouble of handling
    	// unknown flags to some degree, to run the switch now, so that
    	// these commands can switch to a newer toolchain directed by the
    	// go.mod which may actually understand the flag.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:25:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
Back to top