Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ConversionPatternRewriter (0.44 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc

    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace odml {
    
    LogicalResult ConvertCustomCallOp::matchAndRewrite(
        mhlo::CustomCallOp mhlo_custom_call, OpAdaptor adaptor,
        ConversionPatternRewriter& rewriter) const {
      auto tfl_custom = rewriter.create<TFL::CustomOp>(
          mhlo_custom_call.getLoc(), mhlo_custom_call.getResultTypes(),
          mhlo_custom_call.getInputs());
      tfl_custom.setCustomCodeAttr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

          : ConversionPattern(converter, MatchAnyOpTypeTag(), /*benefit=*/1, ctx) {}
    
      LogicalResult matchAndRewrite(
          Operation* op, const ArrayRef<Value> operands,
          ConversionPatternRewriter& rewriter) const override {
        if (getTypeConverter()->isLegal(op)) {
          return failure();
        }
        if (isa<mlir::stablehlo::BitcastConvertOp>(op)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

            device_type_(device_type),
            prefer_tf2xla_(prefer_tf2xla) {}
    
      LogicalResult matchAndRewrite(
          Operation* op, ArrayRef<Value> operands,
          ConversionPatternRewriter& rewriter) const override {
        // This pattern is a conversion pattern because we want to specify a type
        // converter. However, this pattern still uses the original op's operands
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

     public:
      using OpConversionPattern::OpConversionPattern;
      LogicalResult matchAndRewrite(
          mhlo::ReduceOp reduce_op, OpAdaptor adaptor,
          ConversionPatternRewriter& rewriter) const final {
        if (reduce_op.getInputs().size() != 2) return failure();
        if (reduce_op.getDimensions().getNumElements() != 1) return failure();
    
        // Check that the operand init is the expected value.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top