Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,144 for Switch0 (0.14 sec)

  1. 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)
  2. src/go/printer/testdata/statements.golden

    		use(x)
    	}
    }
    
    // Formatting of switch-statement headers.
    func _() {
    	switch {
    	}
    	switch {
    	}	// no semicolon printed
    	switch expr {
    	}
    	switch expr {
    	}	// no semicolon printed
    	switch expr {
    	}	// no parens printed
    	switch expr {
    	}	// no semicolon and parens printed
    	switch x := expr; {
    	default:
    		use(
    			x)
    	}
    	switch x := expr; expr {
    	default:
    		use(x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 12 18:18:12 UTC 2014
    - 8K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

    //===----------------------------------------------------------------------===//
    // tf_executor.SwitchN
    //===----------------------------------------------------------------------===//
    
    LogicalResult SwitchNOp::verify() {
      SwitchNOp switchn = *this;
      IntegerAttr num_outs = switchn->getAttrOfType<IntegerAttr>("num_outs");
      if (!num_outs)
        return switchn.emitOpError() << "expects a `num_outs` integer attribute";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  5. src/internal/types/testdata/fixedbugs/issue43110.go

    type P *struct{}
    
    func _() {
    	// want an error even if the switch is empty
    	var a struct{ _ func() }
    	switch a /* ERROR "cannot switch on a" */ {
    	}
    
    	switch a /* ERROR "cannot switch on a" */ {
    	case a: // no follow-on error here
    	}
    
    	// this is ok because f can be compared to nil
    	var f func()
    	switch f {
    	}
    
    	switch f {
    	case nil:
    	}
    
    	switch (func())(nil) {
    	case nil:
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 794 bytes
    - Viewed (0)
  6. src/cmd/gofmt/testdata/typeswitch.golden

    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)
  7. test/typeparam/issue51522b.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func f[T comparable](i any) {
    	var t T
    
    	switch i {
    	case t:
    		// ok
    	default:
    		println("FAIL: switch i")
    	}
    
    	switch t {
    	case i:
    		// ok
    	default:
    		println("FAIL: switch t")
    	}
    }
    
    type myint int
    
    func (m myint) foo() {
    }
    
    type fooer interface {
    	foo()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 10 19:30:33 UTC 2022
    - 730 bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/sys/cpu/cpu_arm64.go

    	}
    
    	switch extractBits(isar0, 16, 19) {
    	case 1:
    		ARM64.HasCRC32 = true
    	}
    
    	switch extractBits(isar0, 20, 23) {
    	case 2:
    		ARM64.HasATOMICS = true
    	}
    
    	switch extractBits(isar0, 28, 31) {
    	case 1:
    		ARM64.HasASIMDRDM = true
    	}
    
    	switch extractBits(isar0, 32, 35) {
    	case 1:
    		ARM64.HasSHA3 = true
    	}
    
    	switch extractBits(isar0, 36, 39) {
    	case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/stmt0.go

    func typeswitches() {
    	var i int
    	var x interface{}
    
    	switch x.(type) {}
    	switch (x /* ERROR "outside type switch" */ .(type)) {}
    
    	switch x.(type) {
    	default:
    	default /* ERROR "multiple defaults" */ :
    	}
    
    	switch x /* ERROR "declared and not used" */ := x.(type) {}
    	switch _ /* ERROR "no new variable on left side of :=" */ := x.(type) {}
    
    	switch x := x.(type) {
    	case int:
    		var y int = x
    		_ = y
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. test/fixedbugs/issue9608.dir/issue9608.go

    		fail()
    	}
    }
    
    // Test dead code elimination in ordinary switch statements
    func init() {
    	const x = 0
    	switch x {
    	case 1:
    		fail()
    	}
    
    	switch 1 {
    	case x:
    		fail()
    	}
    
    	switch {
    	case false:
    		fail()
    	}
    
    	const a = "a"
    	switch a {
    	case "b":
    		fail()
    	}
    
    	const snowman = '☃'
    	switch snowman {
    	case '☀':
    		fail()
    	}
    
    	const zero = float64(0.0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 05:12:39 UTC 2016
    - 1K bytes
    - Viewed (0)
Back to top