Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsOpLegalizedWithMlir (0.54 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.h

    namespace mlir {
    namespace mhlo {
    
    // Given the Operation, return True if the op is legalized with MLIR.
    // Returns false if it is legalized with an old TF2XLA Kernel.
    bool IsOpLegalizedWithMlir(Operation& op);
    
    // Given the type ID, check if it's legalized with MLIR.
    bool IsTypeLegalizedWithMlir(const TypeID& type_id);
    
    // Returns true if the op is considered a dynamic padder op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 20:53:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

      TF_EXPECT_OK(CreateMlirModule());
      EXPECT_FALSE(IsOpLegalizedWithMlir(*module_->getOperation()));
    }
    
    TEST_F(LegalizationOpConfigTest, ExpectsFalseForNonMlirOps) {
      TF_EXPECT_OK(CreateMlirModule());
      TF_ASSERT_OK_AND_ASSIGN(FuncOp main, GetMain());
    
      main.walk([&](Operation* op) { EXPECT_FALSE(IsOpLegalizedWithMlir(*op)); });
    }
    
    TEST_F(LegalizationOpConfigTest, ExpectsTrueForMlirTypeID) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

    }
    
    }  // namespace
    
    bool HasTf2XlaFallback(const TypeID& type_id) {
      return IsOpTypeAllowedTf2XlaFallback(type_id) ||
             IsOpTypeAllowedTf2XlaPreferred(type_id);
    }
    
    bool IsOpLegalizedWithMlir(Operation& op) {
      auto abstractOp = op.getRegisteredInfo();
      if (!abstractOp) return false;
      return IsTypeLegalizedWithMlir(abstractOp->getTypeID());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top