Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsInBridgeAcceptableDialects (0.27 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/utils/dialect_detection_utils_test.cc

    using mlir::OpBuilder;
    using mlir::Operation;
    using mlir::OperationState;
    using mlir::UnknownLoc;
    using mlir::chlo::ChloDialect;
    using mlir::TF::TensorFlowDialect;
    using tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects;
    
    class SharedUtilsTest : public ::testing::Test {};
    
    TEST_F(SharedUtilsTest, IsInFunctionalDialectPasses) {
      MLIRContext context;
      context.loadDialect<TensorFlowDialect>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 20:33:37 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/utils/dialect_detection_utils.h

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    // Returns true if the op has a valid namespace during clustering & tf dialect
    // to executor components of the Bridge.
    bool IsInBridgeAcceptableDialects(mlir::Operation* op);
    
    }  // namespace internal
    }  // namespace tf2xla
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 20:33:37 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/utils/dialect_detection_utils.cc

    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "mlir/IR/Visitors.h"  // from @llvm-project
    
    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    bool IsInBridgeAcceptableDialects(mlir::Operation* op) {
      const std::set<std::string> kBuiltinNamespaces = {"func", "return",
                                                        "builtin"};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 20:33:37 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_clustering_pass.cc

    };
    
    void VerifyClusteringPass::runOnOperation() {
      Operation* func_op = getOperation();
    
      auto walk_result = func_op->walk([&](Operation* op) {
        if (!tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects(op)) {
          std::string error = "op is in dialect " +
                              op->getDialect()->getNamespace().str() +
                              " not in tf functional dialect";
          op->emitError() << error;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 08 20:33:37 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/verify_input_dialect_to_executor_pass.cc

    }
    
    void VerifyInputDialectToExecutorPass::runOnOperation() {
      Operation* func_op = getOperation();
    
      auto walk_result = func_op->walk([&](Operation* op) {
        if (!tensorflow::tf2xla::internal::IsInBridgeAcceptableDialects(op)) {
          std::string error = "op is in dialect " +
                              op->getDialect()->getNamespace().str() +
                              " which is not an accepted dialect";
          op->emitError() << error;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 08 16:32:56 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top