Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for constop (0.12 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        return success();
      }
    };
    
    // Converts ConstOp to XLA's constant operation and introduces a tensor cast if
    // needed.
    class ConvertConstOp : public OpRewritePattern<TF::ConstOp> {
     public:
      using OpRewritePattern::OpRewritePattern;
    
      LogicalResult matchAndRewrite(TF::ConstOp op,
                                    PatternRewriter &rewriter) const override {
        // Convert only for valid HLO tensors.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewrite386.go

    		}
    		v.reset(Op386SHLLconst)
    		v.AuxInt = int32ToAuxInt(int32(c))
    		v.AddArg(x)
    		return true
    	}
    	// match: (Lsh16x64 _ (Const64 [c]))
    	// cond: uint64(c) >= 16
    	// result: (Const16 [0])
    	for {
    		if v_1.Op != OpConst64 {
    			break
    		}
    		c := auxIntToInt64(v_1.AuxInt)
    		if !(uint64(c) >= 16) {
    			break
    		}
    		v.reset(OpConst16)
    		v.AuxInt = int16ToAuxInt(0)
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 21:05:46 UTC 2023
    - 262.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewriteARM.go

    }
    func rewriteValueARM_OpConst16(v *Value) bool {
    	// match: (Const16 [val])
    	// result: (MOVWconst [int32(val)])
    	for {
    		val := auxIntToInt16(v.AuxInt)
    		v.reset(OpARMMOVWconst)
    		v.AuxInt = int32ToAuxInt(int32(val))
    		return true
    	}
    }
    func rewriteValueARM_OpConst32(v *Value) bool {
    	// match: (Const32 [val])
    	// result: (MOVWconst [int32(val)])
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 486.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/rewritePPC64.go

    	return false
    }
    func rewriteValuePPC64_OpConst16(v *Value) bool {
    	// match: (Const16 [val])
    	// result: (MOVDconst [int64(val)])
    	for {
    		val := auxIntToInt16(v.AuxInt)
    		v.reset(OpPPC64MOVDconst)
    		v.AuxInt = int64ToAuxInt(int64(val))
    		return true
    	}
    }
    func rewriteValuePPC64_OpConst32(v *Value) bool {
    	// match: (Const32 [val])
    	// result: (MOVDconst [int64(val)])
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 360.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/rewriteS390X.go

    	}
    }
    func rewriteValueS390X_OpConst16(v *Value) bool {
    	// match: (Const16 [val])
    	// result: (MOVDconst [int64(val)])
    	for {
    		val := auxIntToInt16(v.AuxInt)
    		v.reset(OpS390XMOVDconst)
    		v.AuxInt = int64ToAuxInt(int64(val))
    		return true
    	}
    }
    func rewriteValueS390X_OpConst32(v *Value) bool {
    	// match: (Const32 [val])
    	// result: (MOVDconst [int64(val)])
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 395.1K bytes
    - Viewed (0)
Back to top