Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 4,183 for switch2 (0.14 sec)

  1. 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)
  2. src/cmd/compile/internal/ir/fmt.go

    	OIF:         -1,
    	OLABEL:      -1,
    	OGO:         -1,
    	ORANGE:      -1,
    	ORETURN:     -1,
    	OSELECT:     -1,
    	OSWITCH:     -1,
    
    	OEND: 0,
    }
    
    // StmtWithInit reports whether op is a statement with an explicit init list.
    func StmtWithInit(op Op) bool {
    	switch op {
    	case OIF, OFOR, OSWITCH:
    		return true
    	}
    	return false
    }
    
    func stmtFmt(n Node, s fmt.State) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  3. tensorflow/cc/ops/while_loop.cc

      std::vector<Output> switch_trues(num_loop_vars);
      std::vector<Output> switch_falses(num_loop_vars);
      for (size_t i = 0; i < num_loop_vars; ++i) {
        auto switch_i = Switch(scope, merge_outputs[i], cond_out);
        switch_trues[i] = switch_i.output_true;
        switch_falses[i] = switch_i.output_false;
      }
      TF_RETURN_IF_ERROR(scope.status());
    
      std::vector<Output> body_outputs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 01:01:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      ops::Switch switch_a(root.WithOpName("switch_a"), value, cond_a);
      ops::Switch switch_b(root.WithOpName("switch_b"), value, cond_b);
    
      Output add_a = ops::Add(root.WithOpName("add_a"), switch_a.output_true,
                              switch_b.output_true);
      Output add_b = ops::Add(root.WithOpName("add_b"), switch_a.output_true,
                              switch_b.output_true);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/tokens.go

    	_Import      // import
    	_Interface   // interface
    	_Map         // map
    	_Package     // package
    	_Range       // range
    	_Return      // return
    	_Select      // select
    	_Struct      // struct
    	_Switch      // switch
    	_Type        // type
    	_Var         // var
    
    	// empty line comment to exclude it from .String
    	tokenCount //
    )
    
    const (
    	// for BranchStmt
    	Break       = _Break
    	Continue    = _Continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. src/runtime/msan_amd64.s

    	MOVQ	$__msan_memmove(SB), AX
    	JMP	msancall<>(SB)
    
    // Switches SP to g0 stack and calls (AX). Arguments already set.
    TEXT	msancall<>(SB), NOSPLIT, $0-0
    	get_tls(R12)
    	MOVQ	g(R12), R14
    	MOVQ	SP, R12		// callee-saved, preserved across the CALL
    	CMPQ	R14, $0
    	JE	call	// no g; still on a system stack
    
    	MOVQ	g_m(R14), R13
    	// Switch to g0 stack.
    	MOVQ	m_g0(R13), R10
    	CMPQ	R10, R14
    	JE	call	// already on g0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 01:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/stmt.go

    		t = n.Tag.Type()
    	}
    
    	var nilonly string
    	if t != nil {
    		switch {
    		case t.IsMap():
    			nilonly = "map"
    		case t.Kind() == types.TFUNC:
    			nilonly = "func"
    		case t.IsSlice():
    			nilonly = "slice"
    
    		case !types.IsComparable(t):
    			if t.IsStruct() {
    				base.ErrorfAt(n.Pos(), errors.InvalidExprSwitch, "cannot switch on %L (struct containing %v cannot be compared)", n.Tag, types.IncomparableField(t).Type)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  8. test/newinline.go

    }
    
    func switchBreak(x, y int) int { // ERROR "can inline switchBreak"
    	var n int
    	switch x {
    	case 0:
    		n = 1
    	Done:
    		switch y {
    		case 0:
    			n += 10
    			break Done
    		}
    		n = 2
    	}
    	return n
    }
    
    func switchType(x interface{}) int { // ERROR "can inline switchType" "x does not escape"
    	switch x.(type) {
    	case int:
    		return x.(int)
    	default:
    		return 0
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/stmt.go

    // The result of walkStmt MUST be assigned back to n, e.g.
    //
    //	n.Left = walkStmt(n.Left)
    func walkStmt(n ir.Node) ir.Node {
    	if n == nil {
    		return n
    	}
    
    	ir.SetPos(n)
    
    	walkStmtList(n.Init())
    
    	switch n.Op() {
    	default:
    		if n.Op() == ir.ONAME {
    			n := n.(*ir.Name)
    			base.Errorf("%v is not a top level statement", n.Sym())
    		} else {
    			base.Errorf("%v is not a top level statement", n.Op())
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/g3doc/tf_dialects.md

    capture would be displayed as:
    
    ```mlir {.mlir}
    %2, %ctl2 = tf_executor.island(%ctl0) wraps tf.Add %1, %0 : tensor<*xf32>
    ```
    
    ### `tf_executor.Switch` Operation
    
    [`tf_executor.Switch`](https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/switch):
    takes two inputs,`predicate`and`data`and returns two regular
    outputs,`true_output`,`false_output`. The`data`input is copied
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 16K bytes
    - Viewed (0)
Back to top