Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for blockMark (0.48 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

    }
    
    // Finds op that created a given value. If the value is a BlockArgument, this
    // returns the owner of the Block.
    Operation* GetOpOfValue(Value value) {
      if (auto block_arg = mlir::dyn_cast<BlockArgument>(value))
        return block_arg.getOwner()->getParentOp();
    
      return value.getDefiningOp();
    }
    
    // Checks if `op` is nested in `block`.
    bool OpInBlock(Operation* op, Block* block) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

                     replicate_op.GetBody().getArguments())) {
        mlir::TF::TPUReplicatedInputOp input = std::get<0>(input_and_block_arg);
        Value block_arg = std::get<1>(input_and_block_arg);
        mlir::replaceAllUsesInRegionWith(input->getResult(0), block_arg,
                                         cluster.getBody());
        // Update replicated input use in tf.TPUPartitionedInputV2 op.
        for (auto& use : input->getUses()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

        if (yield->getNumOperands() != block.getNumArguments() + 1)
          return std::nullopt;
        for (auto [yield_operand, block_arg] :
             llvm::zip(yield->getOperands().drop_front(1), block.getArguments())) {
          if (yield_operand != block_arg) return std::nullopt;
        }
      } else {
        // All call results should feed into expected consumer
        // All results of the call should feed into the yield.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top