Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for MhloDialect (0.31 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.td

    }
    
    def LegalizeStablehloToVhloPass : Pass<"stablehlo-legalize-vhlo", "ModuleOp"> {
      let summary = "Legalize StableHLO to VHLO for ODML.";
      let dependentDialects = ["mlir::vhlo::VhloDialect"];
    }
    
    def LegalizeVhloToStablehloPass : Pass<"vhlo-legalize-stablehlo", "ModuleOp"> {
      let summary = "Legalize VHLO to StableHLO for ODML.";
      let dependentDialects = ["mlir::stablehlo::StablehloDialect"];
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

      chlo::ConstantLikeOp::getCanonicalizationPatterns(patterns, context);
    
      ConversionTarget target(*context);
      target.addIllegalDialect<chlo::ChloDialect>();
      target.addLegalDialect<mhlo::MhloDialect>();
      target.addLegalDialect<arith::ArithDialect>();
      target.addLegalDialect<func::FuncDialect>();
      target.addLegalDialect<tensor::TensorDialect>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

      // Add new conversion patterns here.
      PopulateLegalizeHloToTFLitePatterns(&patterns, &context);
    
      ConversionTarget target(context);
      target.addLegalDialect<TFL::TensorFlowLiteDialect, mhlo::MhloDialect>();
      target.addLegalOp<func::CallOp, func::ConstantOp, arith::ConstantOp>();
      target.addDynamicallyLegalOp<mhlo::CustomCallOp>(IsCustomCallLegal);
      target.addDynamicallyLegalOp<mhlo::ReduceOp>(IsReduceOpLegal);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

        if (!HasStaticShapeOrBounded(o)) {
          return EmitMustBeConstantError(op);
        }
      }
      return true;
    }
    
    bool IsMhloAndStatic(Operation* op) {
      if (!llvm::isa<mlir::mhlo::MhloDialect>(op->getDialect())) {
        // Skip this op if it isn't an mhlo op.
        return true;
      }
      return IsStaticOperation(op);
    }
    
    bool IsDefaultConversionLegal(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils_test.cc

      context->appendDialectRegistry(mlir_registry);
      context->getOrLoadDialect<tf_type::TFTypeDialect>();
      context->getOrLoadDialect<quant::QuantizationDialect>();
      context->getOrLoadDialect<mlir::mhlo::MhloDialect>();
      context->getOrLoadDialect<sparse_tensor::SparseTensorDialect>();
      return context;
    }
    
    TEST(GetDenseAttrFromTensorProtoAttrTest, Qint8ToUQ8Succeeds) {
      auto context = CreateContext();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

      // multi-threaded execution context, and PassManager is
      // multi-threaded.
      let dependentDialects = [
        "chlo::ChloDialect",
        "mhlo::MhloDialect",
        "shape::ShapeDialect",
        "stablehlo::StablehloDialect",
        "vhlo::VhloDialect",
        "quant::QuantizationDialect",
      ];
    
      let constructor = "TF::CreateXlaCallModuleDeserializationPass()";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

      MLIRContext *ctx = &getContext();
      func::FuncOp func = getOperation();
      ConversionTarget target(*ctx);
      target.addLegalDialect<TF::TensorFlowDialect, mhlo::MhloDialect,
                             chlo::ChloDialect>();
      target.addIllegalOp<
          TF::UniformQuantizeOp, TF::UniformRequantizeOp, TF::UniformDequantizeOp,
          TF::UniformQuantizedDotOp, TF::UniformQuantizedDotHybridOp,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/passes.td

      let constructor = "CreatePrepareTFPass()";
      let dependentDialects = ["TFL::TensorFlowLiteDialect",
        "mlir::quant::QuantizationDialect",
        "mlir::quantfork::QuantizationForkDialect",
        "mhlo::MhloDialect"
      ];
      let options = [
          Option<"unfold_batch_matmul_", "unfold_batchmatmul",
                 "bool", "true",
                 "Unfold BatchMatMul into individual MatMul ops.">,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

     public:
      StablehloToOdmlTypeConverter() : vhlo::VhloTypeConverter() {
        addConversion([](Type type) {
          if (type.getDialect().getNamespace() ==
              vhlo::VhloDialect::getDialectNamespace()) {
            return type;
          }
          LLVM_DEBUG(llvm::dbgs() << "Invalid type: " << type << '\n');
          return Type();
        });
        addConversion([](stablehlo::TokenType token) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/passes.td

        ops, but may not have identical structure.
      }];
    
      let options = [];
      let constructor = "CreateOutlineCompositesPass()";
      let dependentDialects = ["mlir::chlo::ChloDialect", "mlir::stablehlo::StablehloDialect", "mlir::func::FuncDialect"];
    }
    
    def SHLOSimplifyPass: Pass<"shlo-simplify", "ModuleOp"> {
      let summary = "Apply internal canonicalizations and foldings.";
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:05:30 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top