Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 212 for cond_a (0.19 sec)

  1. src/cmd/compile/internal/ssa/rewriteMIPS64.go

    		// match: (GTZ (MOVVconst [c]) yes no)
    		// cond: c <= 0
    		// result: (First no yes)
    		for b.Controls[0].Op == OpMIPS64MOVVconst {
    			v_0 := b.Controls[0]
    			c := auxIntToInt64(v_0.AuxInt)
    			if !(c <= 0) {
    				break
    			}
    			b.Reset(BlockFirst)
    			b.swapSuccessors()
    			return true
    		}
    	case BlockIf:
    		// match: (If cond yes no)
    		// result: (NE cond yes no)
    		for {
    			cond := b.Controls[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 211.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/decompose_reduce_dataset.mlir

        // CHECK-SAME: output_shapes = [#tf_type.shape<32>]
        // CHECK-SAME: output_types = [f32]
        // CHECK-NEXT: "tf.MakeIterator"(%[[ARG_0]], %[[ANON_ITER]])
        // CHECK-NEXT: %[[COND:.*]] = "tf.Const"
        // CHECK-NEXT: "tf.WhileRegion"(%[[COND]], %[[ARG_1]])
        // CHECK-NEXT:   ^bb0(%[[ARG_2:.*]]: tensor<i1>, %[[ARG_3:.*]]: tensor<i64>)
        // CHECK-NEXT:     "tf.Yield"(%[[ARG_2]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 18 17:16:34 UTC 2022
    - 9.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

          return success();
        }
    
        // Extract the constant cond value.
        DenseElementsAttr cond;
        if (!matchPattern(op.getCond(), m_Constant(&cond))) return failure();
    
        // TODO(hinsu): Handle constants that are not scalar booleans.
        auto cond_type = mlir::dyn_cast<RankedTensorType>(cond.getType());
        if (!cond_type || !cond_type.getShape().equals({}) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/inst.go

    		return ""
    	}
    	return fmt.Sprintf("#%#x", uint32(i))
    }
    
    // Standard conditions.
    type Cond struct {
    	Value  uint8
    	Invert bool
    }
    
    func (Cond) isArg() {}
    
    func (c Cond) String() string {
    	cond31 := c.Value >> 1
    	invert := bool((c.Value & 1) == 1)
    	invert = (invert != c.Invert)
    	switch cond31 {
    	case 0:
    		if invert {
    			return "NE"
    		} else {
    			return "EQ"
    		}
    	case 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewriteARM64latelower.go

    	}
    	return false
    }
    func rewriteValueARM64latelower_OpARM64ADDSconstflags(v *Value) bool {
    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (ADDSconstflags [c] x)
    	// cond: !isARM64addcon(c)
    	// result: (ADDSflags x (MOVDconst [c]))
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		x := v_0
    		if !(!isARM64addcon(c)) {
    			break
    		}
    		v.reset(OpARM64ADDSflags)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

    Value ConvertConditionToBoolean(Operation* op, Value cond) {
      if (auto ranked_type = mlir::dyn_cast<RankedTensorType>(cond.getType()))
        if (ranked_type.getRank() == 0 &&
            ranked_type.getElementType().isSignlessInteger(1))
          return cond;
    
      OpBuilder builder(op);
      Value to_bool = builder.create<TF::ToBoolOp>(op->getLoc(), cond);
      CopyDeviceAndUnderscoredAttributes(op, to_bool.getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/crypto/internal/nistec/fiat/p384.go

    func (e *P384Element) Square(t *P384Element) *P384Element {
    	p384Square(&e.x, &t.x)
    	return e
    }
    
    // Select sets v to a if cond == 1, and to b if cond == 0.
    func (v *P384Element) Select(a, b *P384Element, cond int) *P384Element {
    	p384Selectznz((*p384UntypedFieldElement)(&v.x), p384Uint1(cond),
    		(*p384UntypedFieldElement)(&b.x), (*p384UntypedFieldElement)(&a.x))
    	return v
    }
    
    func p384InvertEndianness(v []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/fiat/p521.go

    func (e *P521Element) Square(t *P521Element) *P521Element {
    	p521Square(&e.x, &t.x)
    	return e
    }
    
    // Select sets v to a if cond == 1, and to b if cond == 0.
    func (v *P521Element) Select(a, b *P521Element, cond int) *P521Element {
    	p521Selectznz((*p521UntypedFieldElement)(&v.x), p521Uint1(cond),
    		(*p521UntypedFieldElement)(&b.x), (*p521UntypedFieldElement)(&a.x))
    	return v
    }
    
    func p521InvertEndianness(v []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/stmt.go

    	}
    	return n
    }
    
    // tcFor typechecks an OFOR node.
    func tcFor(n *ir.ForStmt) ir.Node {
    	Stmts(n.Init())
    	n.Cond = Expr(n.Cond)
    	n.Cond = DefaultLit(n.Cond, nil)
    	if n.Cond != nil {
    		t := n.Cond.Type()
    		if t != nil && !t.IsBoolean() {
    			base.Errorf("non-bool %L used as for condition", n.Cond)
    		}
    	}
    	n.Post = Stmt(n.Post)
    	Stmts(n.Body)
    	return n
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  10. src/crypto/internal/edwards25519/tables.go

    	// Compute xabs = |x|
    	xmask := x >> 7
    	xabs := uint8((x + xmask) ^ xmask)
    
    	dest.Zero()
    	for j := 1; j <= 8; j++ {
    		// Set dest = j*Q if |x| = j
    		cond := subtle.ConstantTimeByteEq(xabs, uint8(j))
    		dest.Select(&v.points[j-1], dest, cond)
    	}
    	// Now dest = |x|*Q, conditionally negate to get x*Q
    	dest.CondNeg(int(xmask & 1))
    }
    
    // Set dest to x*Q, where -8 <= x <= 8, in constant time.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 05 21:02:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top