Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 126 for func_20 (0.13 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

      }
    };
    
    // Returns true iff func_op has either no Region or the body has no Blocks.
    bool IsFuncOpEmpty(func::FuncOp func_op) {
      return func_op->getNumRegions() == 0 || func_op.getBody().empty();
    }
    
    // Gets the GraphOp from the function op. Returns an empty op iff it doesn't
    // exist.
    GraphOp GetGraphOpFromFuncOp(func::FuncOp func_op) {
      if (IsFuncOpEmpty(func_op)) return {};
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/func.cc

    using ::tensorflow::kDefaultServingSignatureDefKey;
    using ::tensorflow::kImportModelDefaultGraphFuncName;
    
    // Returns true iff the function's symbol is public.
    bool IsPublicFuncOp(func::FuncOp func_op) {
      return SymbolTable::getSymbolVisibility(&*func_op) ==
             SymbolTable::Visibility::Public;
    }
    
    }  // namespace
    
    func::FuncOp FindMainFuncOp(ModuleOp module_op) {
      if (const auto main_func_op = module_op.lookupSymbol<func::FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/strip_noinline_attribute.cc

     public:
      // void runOnOperation() override;
      void runOnOperation() override {
        // Strip the "tf._noinline" attribute from top-level functions.
        for (auto func_op : getOperation().getOps<func::FuncOp>())
          func_op->removeAttr("tf._noinline");
      }
    };
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>> CreateStripNoinlineAttributePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

      OpPassManager &func_pm = pm.nest<func::FuncOp>();
    
      // First operates on the executor dialect:
      // - remove dead islands.
      // - fuse islands as much as possible.
      // - materialize the eventual "pass-through" ops by inlining their content.
      func_pm.addPass(tf_executor::CreateTFExecutorGraphPruningPass());
      func_pm.addPass(tf_executor::CreateTFExecutorIslandCoarseningPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass.cc

     public:
      void runOnOperation() override;
    };
    
    void InferenceMetricsPass::runOnOperation() {
      bool has_tpu_partitioned_call = false;
      ModuleOp module = getOperation();
    
      for (auto func_op : module.getOps<func::FuncOp>()) {
        func_op->walk(
            [&](TF::TPUPartitionedCallOp op) { has_tpu_partitioned_call = true; });
    
        if (has_tpu_partitioned_call) break;
      }
    
      std::string has_tpu_partitioned_call_str =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 05 21:24:51 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfrt/analysis/tensor_array_side_effect_analysis.h

      explicit TensorArraySideEffectAnalysis(mlir::ModuleOp module);
    
      // Return if the function contains only non-side-effecting ops or TensorArray
      // ops.
      bool HasAtMostTensorArrayEffect(mlir::func::FuncOp func_op) const {
        return set_.count(func_op) > 0;
      }
    
     private:
      llvm::DenseSet<mlir::func::FuncOp> set_;
    };
    
    }  // namespace tfrt_compiler
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc

        return false;  // not a call
      func::FuncOp func_op = dyn_cast<func::FuncOp>(call.resolveCallable(
          &symbol_table_collection_));
      return IsPureFunction(func_op);
    }
    
    bool OpSideEffectCollector::IsPureFunction(func::FuncOp func_op) const {
      auto it = is_pure_function_.find(func_op);
      if (it == is_pure_function_.end()) {
        bool is_pure = true;
        is_pure_function_[func_op] = is_pure;  // prevent infinite recursion
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

        return_operands.push_back(cloned_output);
      }
      function_builder.create<mlir::func::ReturnOp>(new_func.getLoc(),
                                                    return_operands);
      ops_added.func_op = new_func;
      module.push_back(new_func);
      return new_func;
    }
    
    void ExtractSubgraphToFunc(const Subgraph& subgraph, OpBuilder& builder,
                               ModuleOp& module, OpsAdded& ops_added) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

        : tfr_module_(tfr_module), pm_(tfr_module_.getContext()) {
      mlir::OpPassManager& func_pm = pm_.nest<mlir::func::FuncOp>();
    
      // Prepare the imported graph.
      func_pm.addPass(mlir::CreateExecutorDialectToFunctionalConversionPass());
    
      // Run TFR lowering, inlining and raising to tf.
      func_pm.addPass(mlir::TFR::CreateDecomposeTFOpsPass(tfr_module_));
      func_pm.addPass(mlir::TFR::CreateRaiseToTFOpsPass(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.h

     public:
      explicit ConvertMaxUnpoolingFunc(func::FuncOp func, mlir::TF::FuncAttr attr)
          : func_(func), attr_(attr) {}
    
      LogicalResult RewriteFunc();
    
      LogicalResult VerifySignature();
    
     private:
      LogicalResult CreateCustomOptions(std::string& custom_option_buffer);
    
      func::FuncOp func_;
      mlir::TF::FuncAttr attr_;
    };
    
    // Fuse DenseImageWarp ops annotated by tf.function to a TFLite custom op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 07 17:42:55 UTC 2022
    - 2K bytes
    - Viewed (0)
Back to top