Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 114 for symbol_table_ (0.21 sec)

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

        auto f_attr = mlir::dyn_cast<FlatSymbolRefAttr>(call_op.getFAttr());
        auto module_op = call_op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module_op);
    
        auto f_name = f_attr.getValue();
        func::FuncOp float_func =
            dyn_cast<func::FuncOp>(symbol_table.lookup(f_name));
        if (!float_func) {
          return failure();
        }
        rewriter.setInsertionPointAfter(call_op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K 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/tensorflow/transforms/colocate_tpu_copy_with_dynamic_shape.cc

    void ColocateTPUCopyWithDynamicShapePass::runOnOperation() {
      Operation *module = getOperation();
    
      SymbolTableCollection symbolTables;
    
      DataFlowSolver solver;
      solver.load<dataflow::DeadCodeAnalysis>();
      solver.load<dataflow::SparseConstantPropagation>();
      solver.load<DeviceDataflowAnalysis>(symbolTables);
      if (failed(solver.initializeAndRun(module))) return signalPassFailure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 00:30:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

      // bound_inputs' types correctly.
      SymbolTable symbol_table(module);
      for (auto func : module.getOps<func::FuncOp>()) {
        for (auto arg : func.getArguments()) {
          unsigned arg_number = arg.getArgNumber();
          auto global_tensor = LookupBoundInputOfType<GlobalTensorOp>(
              func, arg_number, symbol_table);
          if (!global_tensor) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc

     private:
      void runOnOperation() override;
    };
    
    void ConvertXlaCallModuleOpToBfloat16Pass::runOnOperation() {
      Operation* func_op = getOperation();
      SymbolTableCollection symbol_table;
      OpBuilder builder(&getContext());
    
      auto result = func_op->walk([&](TF::XlaCallModuleOp op) {
        // Converts the serialized StableHLO module to bfloat16.
        auto result =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top