Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 395 for Cond (0.04 sec)

  1. src/cmd/compile/internal/test/testdata/flowgraph_generator1.go

    			bs[j].cond = true
    			cond++
    		}
    		bs[j].succs[0] = int64(blocks[j][0] - 'A')
    	}
    	return bs, cond
    }
    
    // fmtBlocks writes out the blocks for consumption in the generated test
    func fmtBlocks(bs []blo) string {
    	s := "[]blo{"
    	for _, b := range bs {
    		s += fmt.Sprintf("blo{inc:%d, cond:%v, succs:[2]int64{%d, %d}},", b.inc, b.cond, b.succs[0], b.succs[1])
    	}
    	s += "}"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 6.7K bytes
    - Viewed (0)
  2. pilot/pkg/autoregistration/internal/health/controller.go

    	cond := &v1alpha1.IstioCondition{
    		Type: status.ConditionHealthy,
    		// last probe and transition are the same because
    		// we only send on transition in the agent
    		LastProbeTime:      timestamppb.Now(),
    		LastTransitionTime: timestamppb.Now(),
    	}
    	out := HealthCondition{
    		proxy:     proxy,
    		entryName: entryName,
    		condition: cond,
    	}
    	if event.Healthy {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 19 20:41:55 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/stmt.go

    	for i := range s {
    		s[i] = walkStmt(s[i])
    	}
    }
    
    // walkFor walks an OFOR node.
    func walkFor(n *ir.ForStmt) ir.Node {
    	if n.Cond != nil {
    		init := ir.TakeInit(n.Cond)
    		walkStmtList(init)
    		n.Cond = walkExpr(n.Cond, &init)
    		n.Cond = ir.InitExpr(init, n.Cond)
    	}
    
    	n.Post = walkStmt(n.Post)
    	walkStmtList(n.Body)
    	return n
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_island_coarsening/while_op.mlir

        %2:2 = tf_executor.island wraps "tf.While"(%1#0) {name = "A", body = @while_body_with_cluster_attr, cond = @while_cond_with_cluster_attr, is_stateless = false, parallel_iterations = 10 : i64} : (tensor<i32>) -> tensor<i32>
        %3:2 = tf_executor.island wraps "tf.While"(%1#0) {name = "B", body = @while_body_with_wrong_cluster_attr, cond = @while_cond_with_wrong_cluster_attr, is_stateless = false, parallel_iterations = 10 : i64} : (tensor<i32>) -> tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 11:03:04 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_ops.td

        Op<Mlrt_Dialect, mnemonic, !listconcat(traits, [IsolatedFromAbove])> {
    }
    
    def CondOp: Mlrt_Op<"cond", []> {
      let summary = "mlrt.cond op";
    
      let description = [{
        Execute $a_true_fn with $args if $cond is true; otherwise, %b_false_fn is
        executed.
      }];
    
      let arguments = (ins
        I1:$cond,
        Variadic<AnyType>:$args,
        SymbolRefAttr:$a_true_fn,
        SymbolRefAttr:$b_false_fn
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 22:07:30 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/remove_tf_if_const_args.mlir

    // CHECK: return [[r]]
    
    // CHECK-LABEL: func @remove_const_args
    // CHECK-SAME: ([[x:%.*]]: tensor<i32>, [[cond:%.*]]: tensor<i1>)
    func.func @remove_const_args(%x: tensor<i32>, %cond: tensor<i1>) -> (tensor<i32>) {
      %0 = "tf.Const"() {value = dense<10> : tensor<i32> } : () -> tensor<i32>
      // CHECK: [[res:%.*]] = "tf.If"([[cond]], [[x]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 10:51:48 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/functional-while-ops.mlir

      %0:3 = tf_executor.graph {
        %outputs_2:2, %control_3 = tf_executor.island wraps "tf.While"(%arg0, %arg1) {body = @body, cond = @cond, is_stateless = false} : (tensor<i32>, tensor<5xf32>) -> (tensor<i32>, tensor<5xf32>) loc("StatefulWhile")
        %outputs_4:2, %control_5 = tf_executor.island wraps "tf.While"(%arg0, %arg1) {body = @body, cond = @cond, is_stateless = true} : (tensor<i32>, tensor<5xf32>) -> (tensor<i32>, tensor<5xf32>) loc("StatelessWhile")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 12:28:56 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  8. pilot/pkg/model/kstatus/helper.go

    	return w.Status
    }
    
    var EmptyCondition = metav1.Condition{}
    
    func GetCondition(conditions []metav1.Condition, condition string) metav1.Condition {
    	for _, cond := range conditions {
    		if cond.Type == condition {
    			return cond
    		}
    	}
    	return EmptyCondition
    }
    
    // UpdateConditionIfChanged updates a condition if it has been changed.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 17:36:41 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/promise/counting.go

    // the given counter is decremented for a goroutine waiting for this
    // varible to be set and incremented when such a goroutine is
    // unblocked.
    type countingPromise struct {
    	lock          sync.Locker
    	cond          sync.Cond
    	activeCounter counter.GoRoutineCounter // counter of active goroutines
    	waitingCount  int                      // number of goroutines idle due to this being unset
    	isSet         bool
    	value         interface{}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 10 14:37:53 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  10. pkg/controller/replication/replication_controller_utils_test.go

    	}
    
    	for _, test := range tests {
    		cond := GetCondition(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)
    		}
    	}
    }
    
    func TestSetCondition(t *testing.T) {
    	tests := []struct {
    		name string
    
    		status *v1.ReplicationControllerStatus
    		cond   v1.ReplicationControllerCondition
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 07 22:48:32 UTC 2017
    - 4.6K bytes
    - Viewed (0)
Back to top