Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addIllegalDialect (0.2 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

    LogicalResult ApplyStablehloToVhloPatterns(ModuleOp module,
                                               bool is_func_legal) {
      MLIRContext *context = module.getContext();
      ConversionTarget target(*context);
      target.addIllegalDialect<stablehlo::StablehloDialect>();
      target.addDynamicallyLegalDialect<func::FuncDialect>(
          [&](auto) { return is_func_legal; });
      target.addLegalDialect<TFL::TensorFlowLiteDialect>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tf_stablehlo_pass.cc

      chlo::populateChloToHloPatterns(context, &hlo_converter, &patterns);
      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)
Back to top