Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 212 for cond_a (0.1 sec)

  1. test/literal.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test literal syntax for basic types.
    
    package main
    
    var nbad int
    
    func assert(cond bool, msg string) {
    	if !cond {
    		if nbad == 0 {
    			print("BUG")
    		}
    		nbad++
    		print(" ", msg)
    	}
    }
    
    func equal(a, b float32) bool {
    	return a == b
    }
    
    func main() {
    	// bool
    	var t bool = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 5K bytes
    - Viewed (0)
  2. src/crypto/tls/boring_test.go

    			reachable := map[string]bool{leaf.parentOrg: true}
    			reachableFIPS := map[string]bool{leaf.parentOrg: leaf.fipsOK}
    			list := [][]byte{leaf.der}
    			listName := leaf.name
    			addList := func(cond int, c *boringCertificate) {
    				if cond != 0 {
    					list = append(list, c.der)
    					listName += "," + c.name
    					if reachable[c.org] {
    						reachable[c.parentOrg] = true
    					}
    					if reachableFIPS[c.org] && c.fipsOK {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:45:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      func::FuncOp cond =
          func::FuncOp::create(loc, "new_while_cond", cond_func_type);
      func::FuncOp body =
          func::FuncOp::create(loc, "new_while_body", body_func_type);
      cond.setPrivate();
      body.setPrivate();
      symbol_table.insert(cond);
      symbol_table.insert(body);
      OpBuilder cond_builder = OpBuilder::atBlockBegin(cond.addEntryBlock());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

          // verify condition types
          // CHECK: ^bb0(%[[CARG0:.*]]: tensor<i32>, %[[CARG1:.*]]: tensor<*xf32>):
          // CHECK:  %[[COND:.*]] = "tf.Less"(%[[CARG0]], {{.*}}) : (tensor<i32>, tensor<i32>) -> tensor<i1>
          // CHECK:  "tf.Yield"(%[[COND]]) : (tensor<i1>) -> ()
    
        },
        {
          ^bb0(%barg0: tensor<i32>, %barg1: tensor<!tf_type.variant>):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/hoist_invariant_ops.mlir

      // CHECK-NOT: tf.Const
      // CHECK:  "tf._TfrtGetResource"()
      %cond = "tf.Const"() {device = "/CPU:0", value = dense<true> : tensor<i1>} : () -> tensor<i1>
      // CHECK: tf.If
      %x = "tf.If"(%cond, %handle) {then_branch = @some_func, else_branch = @some_func, is_stateless = false} : (tensor<i1>, tensor<!tf_type.resource<tensor<i32>>>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 01 23:54:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/plan9x.go

    		regno := uint16(r) & 31
    		return fmt.Sprintf("CALL (R%d)", regno)
    
    	case RET:
    		if r, ok := inst.Args[0].(Reg); ok && r == X30 {
    			return "RET"
    		}
    
    	case B:
    		if cond, ok := inst.Args[0].(Cond); ok {
    			return "B" + cond.String() + " " + args[1]
    		}
    		return "JMP" + " " + args[0]
    
    	case BR:
    		r := inst.Args[0].(Reg)
    		regno := uint16(r) & 31
    		return fmt.Sprintf("JMP (R%d)", regno)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 17K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/dead.go

    				dead[node] = true
    			}
    			return true
    		})
    	}
    
    	switch stmt := node.(type) {
    	case *ast.IfStmt:
    		// "if" branch is dead if its condition evaluates
    		// to constant false.
    		v := info.Types[stmt.Cond].Value
    		if v == nil {
    			return
    		}
    		if !constant.BoolVal(v) {
    			setDead(stmt.Body)
    			return
    		}
    		if stmt.Else != nil {
    			setDead(stmt.Else)
    		}
    	case *ast.SwitchStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 06 18:23:38 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  8. pkg/scheduler/internal/queue/scheduling_queue.go

    	// pod maximum backoff duration.
    	podMaxBackoffDuration time.Duration
    	// the maximum time a pod can stay in the unschedulablePods.
    	podMaxInUnschedulablePodsDuration time.Duration
    
    	cond sync.Cond
    
    	// inFlightPods holds the UID of all pods which have been popped out for which Done
    	// hasn't been called yet - in other words, all pods that are currently being
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/regalloc_test.go

    	c := testConfig(t)
    	f := c.Fun("entry",
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("ptr", OpArg, c.config.Types.Int64.PtrTo(), 0, c.Temp(c.config.Types.Int64)),
    			Valu("cond", OpArg, c.config.Types.Bool, 0, c.Temp(c.config.Types.Bool)),
    			Valu("ld", OpAMD64MOVQload, c.config.Types.Int64, 0, nil, "ptr", "mem"), // this value needs a spill
    			Goto("loop"),
    		),
    		Bloc("loop",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  10. pkg/controller/deployment/util/deployment_util_test.go

    			condType: apps.DeploymentReplicaFailure,
    
    			expected: false,
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			cond := GetDeploymentCondition(test.status, test.condType)
    			exists := cond != nil
    			if exists != test.expected {
    				t.Errorf("%s: expected condition to exist: %t, got: %t", test.name, test.expected, exists)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 37.1K bytes
    - Viewed (0)
Back to top