Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 114 for symbol_table_ (0.78 sec)

  1. tensorflow/compiler/mlir/tensorflow/analysis/tf_dataflow.h

            }
          }
        } else if (auto while_op = dyn_cast<TF::WhileOp>(op)) {
          func::FuncOp cond = SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
              while_op, while_op.getCondAttr());
          func::FuncOp body = SymbolTable::lookupNearestSymbolFrom<func::FuncOp>(
              while_op, while_op.getBodyAttr());
          for (auto &arg : while_op->getOpOperands()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/call_graph_util.h

    llvm::SmallVector<func::FuncOp> GetEntryFunctions(ModuleOp module);
    
    // Get all the functions referenced in a symber user op and save them in
    // `callees`.
    LogicalResult GetCallees(SymbolUserOpInterface op, SymbolTable &symtab,
                             llvm::SmallVector<func::FuncOp> &callees);
    
    // Find the first op with any of the specified types on each path rooted at the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Dec 16 06:18:49 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

            output.replaceAllUsesWith(identity_input);
            identity_op.erase();
          }
        }
      }
    }
    
    void TpuV1BridgeExecutorIslandCoarsening::runOnOperation() {
      SymbolTable symbol_table(getOperation());
    
      // Map tpu cluster names to the functions that contain operations for this
      // cluster.
      DenseMap<StringRef, DenseSet<func::FuncOp>> tpu_funcs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc

          signalPassFailure();
        };
    
        DenseMap<StringRef, func::FuncOp> entrypoints;
        auto module = getOperation();
        module.walk([&](func::FuncOp op) {
          auto visibility = SymbolTable::getSymbolVisibility(op);
          if (visibility != SymbolTable::Visibility::Public) return;
          entrypoints[op.getSymName()] = op;
        });
    
        if (auto session_initializer =
                tf_saved_model::GetSessionInitializerOp(module)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_cluster_formation.cc

    #include "mlir/IR/Block.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "mlir/IR/SymbolTable.h"  // from @llvm-project
    #include "mlir/Interfaces/CallInterfaces.h"  // from @llvm-project
    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 19:09:44 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

            "Entry computation does not have equal number of parameters to op "
            "operands");
      }
    
      ModuleOp mlir_module = op_->getParentOfType<ModuleOp>();
      mlir::OpBuilder builder(op_);
      mlir::SymbolTable symbol_table(mlir_module);
    
      llvm::SmallVector<mlir::Value> arguments;
      for (int i = 0; i < op_->getNumOperands(); i++) {
        arguments.push_back(op_->getOperand(i));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/IRMapping.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "mlir/IR/SymbolTable.h"  // from @llvm-project
    #include "mlir/Pass/Pass.h"  // from @llvm-project
    #include "mlir/Pass/PassRegistry.h"  // from @llvm-project
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/convert_session_initializer_to_function.cc

      OpBuilder builder(session_initializer);
      const char *name = "session_initializer";
    
      // In the (unlikely) case of there already being a session initializer
      // function, bail out.
      if (SymbolTable::lookupSymbolIn(module, name)) {
        module->emitWarning("session_initializer function already exists");
        session_initializer.erase();
        return;
      }
    
      auto init = builder.create<func::FuncOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 01 05:03:09 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc

        : public impl::XlaValidateInputsPassBase<XlaValidateInputsPass> {
      void runOnOperation() override;
    };
    
    LogicalResult HasNoNestedEntryFunctions(
        const llvm::SmallVector<func::FuncOp> &entry_funcs, SymbolTable &symtab) {
      auto calls_entry_functions = [&](SymbolUserOpInterface op) {
        llvm::SmallVector<func::FuncOp> callees;
        if (GetCallees(op, symtab, callees).failed()) {
          return false;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 19:29:14 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

                                               callee.getBody().getArgumentTypes(),
                                               callee.getResultTypes()));
    }
    
    void RewriteCall(tf_device::ClusterFuncOp cluster_func_op, SymbolTable &symtab,
                     OpBuilder &builder) {
      llvm::SmallVector<Value> non_resource_args, resource_args;
      bool has_resources = false, in_order = true;
      for (const Value &arg : cluster_func_op.getOperands()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top