Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for fetch_op (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc

      // None of the originally given control deps are necessary.
      tf_executor::FetchOp fetch_op = graph_op.GetFetch();
      int num_control_fetches =
          fetch_op.getNumOperands() - graph_op.getNumResults();
      if (num_control_fetches > 0) {
        fetch_op.getFetchesMutable().erase(graph_op.getNumResults(),
                                           num_control_fetches);
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc

      GraphOp graph_op = GetGraphOpFromFuncOp(init_func_op);
      if (!graph_op) return success();  // Consider empty FuncOp valid.
    
      FetchOp fetch_op = graph_op.GetFetch();
      for (const Value fetch : fetch_op.getFetches()) {
        if (!mlir::isa<tf_executor::ControlType>(fetch.getType())) {
          fetch_op.emitError(absl::StrFormat(
              "Validation failed for the initializer function: %s. "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:54:52 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/split_into_island_per_op.mlir

    // op, otherwise, the pass will signal failure.
    
    func.func @graph_multiple_islands() {
      // expected-error@+1 {{expected graph op to contain only a single island_op and a single fetch_op}}
      tf_executor.graph {
        tf_executor.island {
          "tf.NoOp"() : () -> ()
          tf_executor.yield
        }
        tf_executor.island {
          "tf.NoOp"() : () -> ()
          tf_executor.yield
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

        if (!HasSingleOpInBlock<IslandOp>(&block)) return failure();
    
        FetchOp fetch_op = op.GetFetch();
        auto island_op = llvm::cast<IslandOp>(block.front());
        YieldOp yield_op = island_op.GetYield();
    
        // Map graph results to inner ops results of single island.
        llvm::SmallVector<Value, 8> new_rets;
        for (Value operand : fetch_op.getFetches()) {
          // Control results should not be propagated out.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc

    // `FetchOp` will be used without modified. Returns the fetch operands from the
    // `scr_graph_op`.
    Value CloneGraphOps(GraphOp src_graph_op, GraphOp dst_graph_op,
                        IRMapping& mapper) {
      Block& main_body = dst_graph_op.GetBody();
    
      // Take the reference of the main graph's FetchOp to later move to the end.
      FetchOp main_fetch_op = dst_graph_op.GetFetch();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc

      // parentheses is needed for successful compilation.
      assert((isa<IslandOp, FetchOp>(op)));
      if (auto island = dyn_cast<IslandOp>(op)) {
        num_control_inputs_removed += island.getControlInputs().size();
        island.getControlInputsMutable().clear();
      } else if (auto fetch = dyn_cast<FetchOp>(op)) {
        GraphOp graph = fetch->getParentOfType<GraphOp>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 30 07:53:51 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-control-ret-same-island.pbtxt

    # Verify for functions with control return values, the island with a consumed
    # data output and a consumed control has both its outputs added to the GraphOps
    # FetchOp.
    
    # Match the island containing the "tf.Neg", capture the output
    # CHECK:          %[[ISLAND:[a-z_0-9]*]], %[[ISLAND_control:[a-z_0-9]*]] = tf_executor.island wraps "tf.Neg"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:53:21 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-control-ret-diff-island.pbtxt

    # Verify for functions with control return values, the island with only a
    # consumed control return value has its control output added to the GraphOps
    # FetchOp.
    
    # Match the island containing the "tf.Neg", capture the output
    # CHECK:          %[[ISLAND_0:[a-z_0-9]*]], %[[ISLAND_0_control:[a-z_0-9]*]] = tf_executor.island wraps "tf.Neg"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:53:21 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      args_[arg] = node;
      return absl::OkStatus();
    }
    
    // Creates return nodes per operand of a FetchOp. If names is supplied, those
    // names will be used per node in order instead of generating a unique name.
    Status Exporter::AddFetchNode(FuncOp function, mlir::tf_executor::FetchOp fetch,
                                  llvm::ArrayRef<llvm::StringRef> names) {
      auto& return_nodes = returns_[fetch];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      args_[arg] = node;
      return absl::OkStatus();
    }
    
    // Creates return nodes per operand of a FetchOp. If names is supplied, those
    // names will be used per node in order instead of generating a unique name.
    Status Exporter::AddFetchNode(FuncOp function, mlir::tf_executor::FetchOp fetch,
                                  llvm::ArrayRef<llvm::StringRef> names) {
      auto& return_nodes = returns_[fetch];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top