Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsOpLegalizedWithMlir (0.15 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)
Back to top