Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsCustomCallLegal (0.31 sec)

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

    // backend_config of type StringAttr (if specified) should be legalized (i.e.
    // considered to be illegal if still present after this pass is complete).
    std::optional<bool> IsCustomCallLegal(mhlo::CustomCallOp op);
    
    }  // namespace odml
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 02:41:24 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/custom_call.cc

        tfl_custom.setCustomOptionAttr(
            TFL::ConstBytesAttr::get(rewriter.getContext(), ""));
      }
    
      rewriter.replaceOp(mhlo_custom_call, tfl_custom);
      return success();
    }
    
    std::optional<bool> IsCustomCallLegal(mhlo::CustomCallOp op) {
      if (op.getCallTargetName().starts_with("custom_call.")) {
        auto bc = op.getBackendConfig();
        if (!bc || mlir::isa<mlir::StringAttr>(*bc)) {
          return false;
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

      target.addLegalDialect<TFL::TensorFlowLiteDialect, mhlo::MhloDialect>();
      target.addLegalOp<func::CallOp, func::ConstantOp, arith::ConstantOp>();
      target.addDynamicallyLegalOp<mhlo::CustomCallOp>(IsCustomCallLegal);
      target.addDynamicallyLegalOp<mhlo::ReduceOp>(IsReduceOpLegal);
      // Converted MHLO ops should be marked illegal here.
      // TODO: b/304003568 - Add TF_TransposeOp folding logic to tflite.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top