Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for symbol_table_ (0.19 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/transforms/shape_inference.cc

              while_op.ResolveBodyFunction(&symbol_table_)
                  .getFunctionType()
                  .getInputs());
          return PropagateShapeToFunctions(
              module, compatible_types,
              {while_op.ResolveCondFunction(&symbol_table_),
               while_op.ResolveBodyFunction(&symbol_table_)},
              max_iterations);
        }
        return PropagateShapeToFunctions(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

        }
    
        // Make a copy of the quantized function.
        auto module = call_op->getParentOfType<ModuleOp>();
        SymbolTable symbol_table(module);
    
        mlir::func::FuncOp float_func =
            dyn_cast<func::FuncOp>(symbol_table.lookup(f_attr.getValue()));
        rewriter.setInsertionPointAfter(float_func);
    
        // Applies only for hybrid ops in SRQ.
        const bool is_hybrid =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        // Set up the original function names in the imported TF MLIR.
        mlir::Builder builder(module->getContext());
        mlir::SymbolTable symbol_table(*module);
        for (const auto& [tf_name, mlir_name] : tf_name_to_mlir_name) {
          auto func_op = symbol_table.lookup<mlir::func::FuncOp>(mlir_name);
          TF_RET_CHECK(func_op)
              << "Graphdef importer should have created a function named "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/visitor.cc

          const auto uses = SymbolTable::getSymbolUses(op);
          if (!uses.has_value()) {
            op->emitOpError() << "contains a potentially unknown symbol table";
            return WalkResult::interrupt();
          }
    
          for (const SymbolTable::SymbolUse& use : *uses) {
            func::FuncOp called_func =
                symbol_table != nullptr
                    ? symbol_table->lookupNearestSymbolFrom<func::FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 03:46:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc

      ModuleOp module = getOperation();
      SymbolTable symbol_table(module);
      OpBuilder builder(module.getContext());
      module.walk([&](tf_device::ClusterOp cluster) {
        OutlineCluster(cluster, &symbol_table, &builder);
      });
    }
    
    void LaunchOutliningPass::runOnOperation() {
      ModuleOp module = getOperation();
      SymbolTable symbol_table(module);
      OpBuilder builder(module.getContext());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

        if (init_op == nullptr || init_op.getInitializers().empty()) {
          return;
        }
    
        SymbolTable symbol_table(module);
        for (auto initializer : init_op.getInitializers()) {
          auto func = symbol_table.lookup<func::FuncOp>(
              mlir::cast<FlatSymbolRefAttr>(initializer).getValue());
          RewriteFunction(symbol_table, func);
        }
    
        // Clean up unused asset ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top