- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IsTypeLegalizedWithMlir (0.35 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc
TF_ASSERT_OK_AND_ASSIGN(FuncOp main, GetMain()); main.walk([&](Operation* op) { EXPECT_FALSE(IsOpLegalizedWithMlir(*op)); }); } TEST_F(LegalizationOpConfigTest, ExpectsTrueForMlirTypeID) { EXPECT_TRUE(IsTypeLegalizedWithMlir(TypeID::get<TF::ModOp>())); EXPECT_FALSE(HasTf2XlaFallback(TypeID::get<TF::ModOp>())); EXPECT_FALSE(IsOpAllowedTf2xlaFallback(TypeID::get<TF::ModOp>()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 30 03:31:01 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.h
// 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. bool IsDynamicPadderOp(const TypeID& type_id); // Returns True if this op has a Tf2XLA fallback. Currently, this is not the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 20:53:25 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc
} bool IsOpLegalizedWithMlir(Operation& op) { auto abstractOp = op.getRegisteredInfo(); if (!abstractOp) return false; return IsTypeLegalizedWithMlir(abstractOp->getTypeID()); } bool IsTypeLegalizedWithMlir(const TypeID& type_id) { return MlirAlwaysOps().contains(type_id); } bool IsOpAllowedTf2xlaFallback(const TypeID& type_id) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 21.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc
// If the pattern does not have a specific operation, always include it, // If the pattern is in include_ops then include it. bool include = !pat_op_name || IsTypeLegalizedWithMlir(pat_op_name->getRegisteredInfo()->getTypeID()); if (include) to.add(std::move(pattern)); } // Don't filter PDLPatterns. to.add(std::move(from.getPDLPatterns())); return to; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 10.2K bytes - Viewed (0)