Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addDynamicallyLegalDialect (0.37 sec)

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

                                               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>();
      target.addLegalDialect<arith::ArithDialect>();
      target.addLegalDialect<vhlo::VhloDialect>();
    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/transforms/legalize_tf.cc

      target.addLegalOp<TFL::NoValueOp>();
      target.addLegalOp<ConstOp>();
      target.addLegalOp<DequantizeOp>();
      target.addLegalOp<QConstOp>();
      if (run_tfl_runtime_verification_) {
        target.addDynamicallyLegalDialect<TensorFlowLiteDialect>([](Operation* op) {
          auto tfl_op = dyn_cast_or_null<TflRuntimeVerifyOpInterface>(op);
          if (!tfl_op) return false;
          return succeeded(tfl_op.VerifyTflRuntimeConstraints(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
Back to top