Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for symbol_table_ (0.23 sec)

  1. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

      using OpRewritePattern<CallOp>::OpRewritePattern;
    
     public:
      explicit RewriteTFRCallOp(MLIRContext* context, const SymbolTable& table,
                                bool materialize_derived_attrs)
          : OpRewritePattern<CallOp>(context),
            symbol_table_(table),
            materialize_derived_attrs_(materialize_derived_attrs) {}
    
      LogicalResult matchAndRewrite(CallOp call_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

          const SymbolTable& symbol_table, FuncOp function,
          FunctionLibraryDefinition* flib_def,
          llvm::SmallDenseSet<FuncOp>& visited_functions,
          absl::flat_hash_set<Node*>* control_ret_nodes);
    
     private:
      explicit Exporter(const GraphExportConfig* configs, Graph* graph,
                        const Dialect* tf_dialect, const SymbolTable* symbol_table)
          : configs_(*configs),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

          const SymbolTable& symbol_table, FuncOp function,
          FunctionLibraryDefinition* flib_def,
          llvm::SmallDenseSet<FuncOp>& visited_functions,
          absl::flat_hash_set<Node*>* control_ret_nodes);
    
     private:
      explicit Exporter(const GraphExportConfig* configs, Graph* graph,
                        const Dialect* tf_dialect, const SymbolTable* symbol_table)
          : configs_(*configs),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

    FailureOr<StringAttr> RenameStablehloFunctions(
        MLIRContext *context, SymbolTableCollection &symbol_tables,
        ModuleOp tf_module, ModuleOp stablehlo_module) {
      SymbolTable &tf_symbol_table = symbol_tables.getSymbolTable(tf_module);
      // `stablehlo_module` is deleted right after the deserialization, so no need
      // to store its `SymbolTable` to `SymbolTableCollection`.
      SymbolTable stablehlo_symbol_table(stablehlo_module);
    
      Builder builder(context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

      return success();
    }
    
    LogicalResult SessionInitializerOp::verify() {
      SessionInitializerOp session_initializer = *this;
      mlir::SymbolTable symbol_table(
          session_initializer->getParentOfType<ModuleOp>());
    
      for (auto sym_ref : session_initializer.getInitializers()) {
        auto init_func_op = symbol_table.lookup<mlir::func::FuncOp>(
            mlir::cast<FlatSymbolRefAttr>(sym_ref).getValue());
    
        if (!init_func_op)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

      // Adds the new function to symbol table.
      SymbolTable symbol_table(module_op);
      symbol_table.insert(main_func);
      return true;
    }
    
    // Creates a new function name by attaching a number suffix
    // (`main_func_name_{i}`) and incrementing it until there are no conflicts.
    std::string CreateNewFuncName(const StringRef main_func_name,
                                  SymbolTable& symbol_table) {
      int suffix_id = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

        Type quantize_result_type) {
      rewriter.create<func::ReturnOp>(input.getLoc(), ArrayRef<Value>({output}));
    
      quantization_func.setVisibility(func::FuncOp::Visibility::Private);
      SymbolTable symbol_table(quantized_op->getParentOfType<ModuleOp>());
    
      symbol_table.insert(quantization_func);
    
      FlatSymbolRefAttr func_name_attr =
          FlatSymbolRefAttr::get(rewriter.getStringAttr(func_name));
    
      rewriter.restoreInsertionPoint(original_point);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc

      // counter.
      std::string CreateNewFuncName(const StringRef func_name,
                                    SymbolTable &symbol_table) const {
        int suffix_id = 0;
        std::string new_func_name = absl::StrCat(kStablehloFuncNamePrefix, "_",
                                                 func_name.str(), "_", suffix_id);
        while (symbol_table.lookup(new_func_name)) {
          suffix_id++;
          new_func_name = absl::StrCat(kStablehloFuncNamePrefix, "_",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc

        op->setOperand(weight_operand_idx, reshape_op);
    
        // Create a new function with preprocessed types.
        ModuleOp module = op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module);
        func::FuncOp float_func =
            dyn_cast<func::FuncOp>(symbol_table.lookup(function_name));
        OperandRange func_args = op.getArgs();
        func::FuncOp new_float_func = float_func.clone();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. 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)
Back to top