Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetDefaultLegalConversionTargets (0.26 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    
    namespace mlir {
    namespace mhlo {
    
    ConversionTarget GetDefaultLegalConversionTargets(MLIRContext& mlir_context,
                                                      bool legalize_chlo) {
      ConversionTarget target(mlir_context);
    
      if (legalize_chlo) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 17:44:14 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

        return false;
      }
      return true;
    }
    
    void VerifyTFXLALegalization::runOnOperation() {
      Operation* func_op = getOperation();
      ConversionTarget default_conversion_target =
          GetDefaultLegalConversionTargets(getContext(), legalize_chlo_);
    
      bool has_invalid_ops = false;
      func_op->walk([&](Operation* op) {
        if (!IsMhloAndStatic(op)) {
          has_invalid_ops = true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top