Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 435 for ModuleOp (0.17 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/xla_call_module_to_call.cc

      LogicalResult matchAndRewrite(TF::XlaCallModuleOp op,
                                    PatternRewriter& rewriter) const override {
        auto module_op = op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module_op);
    
        auto entry_func_op = dyn_cast_or_null<func::FuncOp>(
            symbol_table.lookup(GetEntryFunctionName(op)));
        if (!entry_func_op) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 04 20:02:00 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

    namespace tensorflow {
    namespace tf2xla {
    namespace internal {
    
    using mlir::Block;
    using mlir::CallInterfaceCallable;
    using mlir::CallOpInterface;
    using mlir::ModuleOp;
    using mlir::OpBuilder;
    using mlir::Operation;
    using mlir::OperationPass;
    using mlir::SymbolTable;
    using mlir::SymbolTableCollection;
    using mlir::SymbolUserOpInterface;
    using mlir::func::FuncOp;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/strip_tf_attributes.cc

        for (auto namedAttr : stripAttrs) {
          func.removeResultAttr(i, namedAttr.getName());
        }
      }
    }
    
    void StripTfAttributesPass::runOnOperation() {
      ModuleOp module = getOperation();
    
      // strip module itself
      auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range(
          module->getAttrs(),
          [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); }));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets_test.cc

     public:
      XlaLegalizeTargetsTest()
          : context_(GetDefaultDialectRegistry()),
            module_(mlir::ModuleOp::create(mlir::UnknownLoc::get(&context_))),
            builder_(&module_->getBodyRegion()) {
        context_.loadAllAvailableDialects();
      }
    
     protected:
      mlir::MLIRContext context_;
      mlir::OwningOpRef<mlir::ModuleOp> module_;
      mlir::OpBuilder builder_;
    };
    
    TEST_F(XlaLegalizeTargetsTest, CreatesConversionTargets) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 05:56:39 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/convert_session_initializer_to_function.cc

        : public impl::ConvertSessionInitializerToFunctionPassBase<
              ConvertSessionInitializerToFunctionPass> {
      void runOnOperation() override;
    };
    
    void ConvertSessionInitializerToFunctionPass::runOnOperation() {
      ModuleOp module = getOperation();
      auto session_initializer = tf_saved_model::GetSessionInitializerOp(module);
      if (!session_initializer) return;
    
      OpBuilder builder(session_initializer);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 01 05:03:09 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

    // created by decomposition.
    constexpr int kMaxIterations = 20;
    
    // Populates `reachable_functions` with all functions that can be reached from
    // device cluster ops.
    void PopulateClusterReachableFunctions(
        ModuleOp module, SmallPtrSetImpl<Operation*>& reachable_functions) {
      SymbolTableCollection table;
      SymbolUserMap symbol_map(table, module);
    
      // Create map from caller to set of all callee(s).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/cluster_tf.cc

    namespace tf2xla {
    namespace v2 {
    
    using mlir::LogicalResult;
    using mlir::ModuleOp;
    using mlir::OpPassManager;
    using mlir::PassManager;
    using mlir::func::FuncOp;
    
    // Run the TF XLA Bridge based on the input pipeline, which can be either TPU
    // bridge pipeline or non TPU bridge pipeline.
    tensorflow::Status RunTFXLABridge(
        ModuleOp module,
        llvm::function_ref<void(OpPassManager &pm)> pipeline_builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:25:18 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass_test.cc

    #include "tensorflow/compiler/mlir/tf2xla/transforms/test_utils.h"
    #include "tsl/platform/statusor.h"
    
    namespace mlir {
    namespace TFDevice {
    
    using ::mlir::MLIRContext;
    using ::mlir::ModuleOp;
    using ::mlir::OwningOpRef;
    using ::mlir::mhlo::test::GetMlirModuleFromString;
    
    class VerifyNoOutsideCompilationMarkersPassTest : public ::testing::Test {
     protected:
      void CreateModule(const char* module_string) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

    }
    
    void XlaRewritePass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTable symtab(module);
      OpBuilder builder(&getContext());
      module.walk([&](tf_device::ClusterFuncOp cluster_func_op) {
        RewriteCall(cluster_func_op, symtab, builder);
      });
    }
    
    }  // namespace
    
    namespace TFDevice {
    std::unique_ptr<OperationPass<ModuleOp>> CreateXlaRewritePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_post_calibration_component.cc

     private:
      void runOnOperation() override;
    };
    
    void TestPostCalibrationComponentPass::runOnOperation() {
      ModuleOp module_op = getOperation();
      MLIRContext& ctx = getContext();
    
      OpPassManager pm(ModuleOp::getOperationName());
    
      QuantizationConfig config = QuantizationConfig::default_instance();
      config.mutable_static_range_ptq_preset();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 12:53:33 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top