Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 149 for Cond (0.1 sec)

  1. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/optimize_tf_control_flow_side_effect.mlir

    func.func @set_stateless(%arg: tensor<i32>, %cond: tensor<i1>) -> (tensor<i32>, tensor<i32>) {
      // CHECK: tf.While
      // CHECK-SAME: is_stateless = true
      %0 = "tf.While"(%arg) { cond = @no_side_effect_cond, body = @no_side_effect_body, is_stateless = false} : (tensor<i32>) -> (tensor<i32>)
      // CHECK: tf.If
      // CHECK-SAME: is_stateless = true
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 01:15:55 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/edwards25519.go

    // Constant-time operations
    
    // Select sets v to a if cond == 1 and to b if cond == 0.
    func (v *projCached) Select(a, b *projCached, cond int) *projCached {
    	v.YplusX.Select(&a.YplusX, &b.YplusX, cond)
    	v.YminusX.Select(&a.YminusX, &b.YminusX, cond)
    	v.Z.Select(&a.Z, &b.Z, cond)
    	v.T2d.Select(&a.T2d, &b.T2d, cond)
    	return v
    }
    
    // Select sets v to a if cond == 1 and to b if cond == 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewritePPC64latelower.go

    	// cond: v.Block == z.Block
    	// result: (CMPconst [0] convertPPC64OpToOpCC(z))
    	for {
    		if auxIntToInt64(v.AuxInt) != 0 {
    			break
    		}
    		z := v_0
    		if z.Op != OpPPC64CNTLZD {
    			break
    		}
    		if !(v.Block == z.Block) {
    			break
    		}
    		v.reset(OpPPC64CMPconst)
    		v.AuxInt = int64ToAuxInt(0)
    		v.AddArg(convertPPC64OpToOpCC(z))
    		return true
    	}
    	// match: (CMPconst [0] z:(RLDICL x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/switch.go

    	// because walkExpr will lower the string
    	// conversion into a runtime call.
    	// See issue 24937 for more discussion.
    	if cond.Op() == ir.OBYTES2STR && allCaseExprsAreSideEffectFree(sw) {
    		cond := cond.(*ir.ConvExpr)
    		cond.SetOp(ir.OBYTES2STRTMP)
    	}
    
    	cond = walkExpr(cond, sw.PtrInit())
    	if cond.Op() != ir.OLITERAL && cond.Op() != ir.ONIL {
    		cond = copyExpr(cond, cond.Type(), &sw.Compiled)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/sink_in_invariant_ops.mlir

      %handle = "tf.VarHandleOp"() {container = "", shared_name = "x"} : () -> tensor<!tf_type.resource<tensor<i32>>>
      // CHECK: [[cond:%.*]] = "tf.Const"()
      %cond = "tf.Const"() {device = "/CPU:0", value = dense<true> : tensor<i1>} : () -> tensor<i1>
      // CHECK: "tf.If"([[cond]], [[cond]], [[handle]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 21K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/localize_var_handles.mlir

      attributes {tf_saved_model.exported_names = ["read_from_global"]} {
        // CHECK: [[name:%.*]] = "tf.VarHandleOp"
        // CHECK: "tf.ReadVariableOp"([[name]])
        %cond = builtin.unrealized_conversion_cast to tensor<i1>
        %0 = "tf.IfRegion"(%cond) ({
          "tf.Yield"(%arg0) : (tensor<!tf_type.resource<tensor<10xf32>>>) -> ()
        }, {
          "tf.Yield"(%arg0) : (tensor<!tf_type.resource<tensor<10xf32>>>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 21:12:02 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/range.go

    				body = append(body, rangeAssign(nrange, hv1t))
    			}
    		}
    	}
    
    	typecheck.Stmts(init)
    
    	nfor.PtrInit().Append(init...)
    
    	typecheck.Stmts(nfor.Cond.Init())
    
    	nfor.Cond = typecheck.Expr(nfor.Cond)
    	nfor.Cond = typecheck.DefaultLit(nfor.Cond, nil)
    	nfor.Post = typecheck.Stmt(nfor.Post)
    	typecheck.Stmts(body)
    	nfor.Body.Append(body...)
    	nfor.Body.Append(nrange.Body...)
    
    	var n ir.Node = nfor
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:33 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/aot/tests/tfcompile_test.cc

    }
    
    TEST(TFCompileTest, Cond) {
      CondComp cond;
      EXPECT_EQ(cond.arg0_data(), cond.arg_data(0));
      EXPECT_EQ(cond.arg1_data(), cond.arg_data(1));
      EXPECT_EQ(cond.arg2_data(), cond.arg_data(2));
      cond.arg1() = 10;
      cond.arg2() = 20;
      {
        cond.arg0() = true;
        const int32 expected_result = cond.arg1();
        EXPECT_TRUE(cond.Run());
        EXPECT_EQ(cond.result0(), expected_result);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 26.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/rewritedec.go

    	v_0 := v.Args[0]
    	// match: (ArrayMake1 x)
    	// cond: x.Type.IsPtrShaped()
    	// result: x
    	for {
    		x := v_0
    		if !(x.Type.IsPtrShaped()) {
    			break
    		}
    		v.copyOf(x)
    		return true
    	}
    	return false
    }
    func rewriteValuedec_OpArraySelect(v *Value) bool {
    	v_0 := v.Args[0]
    	b := v.Block
    	// match: (ArraySelect [0] x)
    	// cond: x.Type.IsPtrShaped()
    	// result: x
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/embedding_sequencing.mlir

        %cst_main = "tf.Const"() {value = dense<1> : tensor<i32>} : () -> tensor<i32>
        %0 = "tf.While"(%cst_main) {body = @while_body, cond = @while_cond, is_stateless = false} : (tensor<i32>) -> (tensor<i32>)
        // expected-error @+1 {{'tf.While' op multiple users of function.}}
        %1 = "tf.While"(%cst_main) {body = @while_body, cond = @while_cond, is_stateless = false} : (tensor<i32>) -> (tensor<i32>)
        return
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 01 21:27:49 UTC 2023
    - 19.1K bytes
    - Viewed (0)
Back to top