Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Tf2XlaRewriter (0.4 sec)

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

    }
    
    };  // namespace
    
    LogicalResult Tf2XlaRewriter::RewriteOp(Operation* op,
                                            PatternRewriter& rewriter,
                                            const std::string& device_type) {
      Tf2XlaRewriter tf2xla_rewriter(op, rewriter, device_type);
      return tf2xla_rewriter.LegalizeOp();
    }
    
    Tf2XlaRewriter::Tf2XlaRewriter(Operation* op, PatternRewriter& rewriter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h

    namespace mlir {
    namespace mhlo {
    
    class Tf2XlaRewriterTestPeer;
    
    class Tf2XlaRewriter {
     public:
      static mlir::LogicalResult RewriteOp(mlir::Operation* op,
                                           mlir::PatternRewriter& rewriter,
                                           const std::string& device_type);
    
     private:
      friend class Tf2XlaRewriterTestPeer;
    
      Tf2XlaRewriter(mlir::Operation* op, mlir::PatternRewriter& rewriter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

          XlaComputation& computation) {
        return tf2xla_rewriter_.ImportXlaComputation(computation);
      }
    
     private:
      OpBuilder op_builder_;
      EmptyPatternRewriter empty_rewriter_;
      Tf2XlaRewriter tf2xla_rewriter_;
    };
    
    // This should only have unit tests. End to end tests should be done with
    // FILECHECK and MLIR tests.
    class Tf2XlaRewriterTest : public ::testing::Test {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc

        if (!(IsOpAllowedTf2xlaFallback(abstractOp->getTypeID()) ||
              (prefer_tf2xla_ &&
               IsOpAllowedTf2xlaPreferred(abstractOp->getTypeID())))) {
          return failure();
        }
    
        return Tf2XlaRewriter::RewriteOp(op, rewriter, device_type_);
      }
    
     private:
      std::string device_type_;
      bool prefer_tf2xla_;
      bool use_tf2xla_hlo_importer_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 9.7K bytes
    - Viewed (0)
Back to top