Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for symbol_table_ (0.33 sec)

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

        ModuleOp module = op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module);
    
        const func::FuncOp ref_func =
            dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(f_attr.getValue()));
        func::FuncOp new_ref_func = dyn_cast<func::FuncOp>(ref_func->clone());
        return symbol_table.insert(new_ref_func);
      }
    
      LogicalResult match(LiftedOpT op) const override {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

      void runOnOperation() override;
    
     private:
      LogicalResult ConvertIfOp(SymbolTableCollection& symbol_table,
                                IfRegionOp if_region);
      LogicalResult ConvertCaseOp(SymbolTableCollection& symbol_table,
                                  CaseRegionOp case_region);
      LogicalResult ConvertWhileOp(SymbolTableCollection& symbol_table,
                                   WhileRegionOp while_region);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      while (!func_ops.empty()) {
        auto main_func = func_ops.back();
        func_ops.pop_back();
        if (!main_func) continue;
    
        SymbolTable symbol_table(module_op);
        for (auto call_op : main_func.getOps<TF::PartitionedCallOp>()) {
          func_ops.push_back(dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(
              mlir::cast<FlatSymbolRefAttr>(call_op.getFAttr()).getValue())));
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      module_for_func.get().getOperation()->setAttr(kVersionsAttr, versions_attr);
      SymbolTable symbol_table(module_for_func.get());
    
      while (!referenced.empty()) {
        auto func = referenced.pop_back_val();
    
        // Skip functions that have already been cloned into new module.
        if (symbol_table.lookup<func::FuncOp>(func.getName())) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc

                                   const StringRef func_name) {
      static tensorflow::mutex* mtx = new tensorflow::mutex();
      tensorflow::mutex_lock lock(*mtx);
    
      SymbolTable symbol_table(&module);
      std::string unique_name = func_name.str();
      int32_t uniquing_counter = 0;
      while (symbol_table.lookup(unique_name) != nullptr) {
        ++uniquing_counter;
        unique_name = absl::StrCat(func_name.str(), "_", uniquing_counter);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc

                                  StringRef error_message) const {
        ModuleOp module = call_op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module);
        mlir::func::FuncOp composite_func =
            dyn_cast<func::FuncOp>(symbol_table.lookup(function_name));
        if (!composite_func) return;
    
        composite_func.walk([&](Operation* op) {
          if (op->hasAttr(kAttrMapAttribute)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/unfreeze_constants.cc

          builder.getStringAttr(kTfSavedModelInitializerRestoreType));
    
      builder.setInsertionPointToStart(&init_func.front());
      builder.create<func::ReturnOp>(loc, /*operands=*/ValueRange{});
    
      SymbolTable symbol_table(module_op);
      symbol_table.insert(init_func);
    
      AddSymbolToInitializersAttr(
          session_init_op, FlatSymbolRefAttr::get(init_func.getSymNameAttr()));
    
      return init_func;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 16 15:04:53 UTC 2023
    - 14K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

      if (!main_graph_op) return;
    
      SessionInitializerOp session_init_op = GetSessionInitializerOp(module_op);
      if (!session_init_op) return;
    
      // initializer_type -> init_func_op mapping.
      SymbolTable symbol_table{module_op};
      FailureOr<absl::flat_hash_map<std::string, func::FuncOp>> init_func_ops =
          GetInitFuncOps(module_op);
      if (failed(init_func_ops)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/cluster_tf_ops_pass.cc

    void CreateFunctions(ModuleOp module_op,
                         llvm::StringMap<FunctionMetadata> &metadatas) {
      MLIRContext *context = module_op.getContext();
      SymbolTable symbol_table(module_op);
      for (auto &iter : metadatas) {
        llvm::StringRef host = iter.first();
        FunctionMetadata &metadata = iter.second;
    
        // Do not create any new function for the operations on the localhost.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc

              .getDefiningOp();
      const auto entry_function_symbol_ref =
          lifted_op->getAttrOfType<FlatSymbolRefAttr>("_entry_function");
      SymbolTable symbol_table(*module_op);
      auto entry_func = dyn_cast_or_null<func::FuncOp>(
          symbol_table.lookup(entry_function_symbol_ref.getValue()));
      auto lifted_dot_general_op =
          FindOperationOfType<mlir::stablehlo::DotGeneralOp>(entry_func);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top