Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for NextIterationSourceOp (0.35 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc

    }
    
    // Visits an op and it's associated operands. IslandOps are handled differently
    // where it's regions op operands are also visited as values may be implicitly
    // captured within. NextIterationSourceOp will also visit it's associated
    // NextIterationSinkOp.
    void VisitOp(GraphOp graph, Operation* op,
                 llvm::SmallPtrSetImpl<Operation*>* reachable_ops,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

    //===----------------------------------------------------------------------===//
    // tf_executor.NextIteration.Source
    //===----------------------------------------------------------------------===//
    
    LogicalResult NextIterationSourceOp::verify() {
      NextIterationSourceOp source = *this;
      Value token = source.getToken();
      if (!token.hasOneUse())
        return source.emitOpError() << "expects a single user for produced token";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

      for (Value value : operands)
        if (!mlir::isa<mlir::BlockArgument>(value)) filtered.push_back(value);
    }
    
    // Split the tfg.NextIteration into tf_executor::NextIterationSourceOp and
    // tf_executor::NextIterationSinkOp to break the cycle introduced by itself.
    static void SplitNextIteration(Block &block) {
      // TODO(b/207144333): Supports callback for unregistered ops
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

      auto& sink_island_control = sink_island_controls[0];
      island_op.getControl().replaceAllUsesWith(sink_island_control);
      // All existing outputs need to add sink_island_control as control input.
      // GraphOp, YieldOp and NextIterationSourceOp don't have control inputs so
      // exclude them below.
      for (Value out : island_op.getOutputs()) {
        for (auto& use : out.getUses()) {
          Operation* owner = use.getOwner();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc

      };
    
      // Check if tf_executor.NextIteration.Source/tf_executor.NextIteration.Sink
      // pair has matching devices or no devices.
      if (auto source = llvm::dyn_cast<tf_executor::NextIterationSourceOp>(op)) {
        return ops_have_same_device(source, source.GetSink());
      } else if (auto sink = llvm::dyn_cast<tf_executor::NextIterationSinkOp>(op)) {
        return ops_have_same_device(sink.GetSource(), sink);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

        // Replaces the input node with NextIteration sink if it is a NextIteration
        // source.
        if (auto next_iter_source =
                llvm::dyn_cast<mlir::tf_executor::NextIterationSourceOp>(
                    input_inst))
          input_inst = next_iter_source.GetSink();
    
        auto node_it = nodes_.find(input_inst);
        TF_RET_CHECK(node_it != nodes_.end())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

        // Replaces the input node with NextIteration sink if it is a NextIteration
        // source.
        if (auto next_iter_source =
                llvm::dyn_cast<mlir::tf_executor::NextIterationSourceOp>(
                    input_inst))
          input_inst = next_iter_source.GetSink();
    
        auto node_it = nodes_.find(input_inst);
        TF_RET_CHECK(node_it != nodes_.end())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_executor_ops.td

                                  operands.end());
          $_state.attributes.append(attributes.begin(), attributes.end());
        }]>
       ];
    
      let extraClassDeclaration = [{
        NextIterationSourceOp GetSource();
      }];
    
      let assemblyFormat = " `[` $token `]` $input (`,` $controlInputs^)? `:` type($input) attr-dict";
    
      let hasCustomAssemblyFormat = 0;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 22K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

                       mlir::tf_executor::EnterOp, mlir::tf_executor::ExitOp,
                       mlir::tf_executor::NextIterationSinkOp,
                       mlir::tf_executor::NextIterationSourceOp>(op);
    }
    
    mlir::LogicalResult IsValidGraph(mlir::ModuleOp module) {
      auto result = module.walk([&](Operation* op) {
        return IsControlFlowV1Op(op) ? mlir::WalkResult::interrupt()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

                                               op->getResults());
      }
      if (auto iter_sink = dyn_cast<tf_executor::NextIterationSinkOp>(op)) {
        auto iter_source = cast<tf_executor::NextIterationSourceOp>(
            iter_sink.getToken().getDefiningOp());
        return RefineTypeForPassThroughOperands(
            op, iter_sink.getOperands().drop_front().take_front(),
            iter_source.getResults());
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
Back to top