Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for yield_operands (0.94 sec)

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

            /*config=*/builder.getStringAttr(""),
            /*config_proto=*/builder.getStringAttr(""),
            /*executor_type=*/builder.getStringAttr(""));
        SmallVector<Value, 16> yield_operands(call_op.getResults());
        builder.create<YieldOp>(island_op.getLoc(), yield_operands);
      }
    
      // Outline all the transitively called functions by moving them in the
      // outlined module.
      for (func::FuncOp func : outlined_module.getOps<func::FuncOp>()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc

    // Creates respective YieldOp for the new merged island.
    YieldOp CreateNewIslandYieldOp(IslandOp new_island,
                                   llvm::MutableArrayRef<IslandResult> results) {
      llvm::SmallVector<Value, 8> yield_operands;
      yield_operands.reserve(results.size());
    
      for (auto [old_result, new_island] :
           llvm::zip(results, new_island.getOutputs())) {
        // Replace original island result with new island result.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

                return !wrapped_ops.count(user.getOwner());
              }))
            yield_operands.push_back(std::get<1>(result));
        }
      }
      OpBuilder::atBlockEnd(&island_body)
          .create<YieldOp>(new_island.getLoc(), yield_operands);
    
      // remap results of the new islands to the user outside of the island.
      int current_result = 0;
    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/tensorflow/transforms/tpu_colocate_splits.cc

          int result_number = llvm::cast<OpResult>(operand).getResultNumber();
          if (auto pred_island = llvm::dyn_cast<tf_executor::IslandOp>(pred)) {
            Value yield_operand = pred_island.GetYield().getOperand(result_number);
            predecessors.push_back(yield_operand.getDefiningOp());
          }
        }
      }
      return predecessors;
    }
    
    struct TPUColocateSplits
        : public impl::TPUColocateSplitsPassBase<TPUColocateSplits> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 18:44:34 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        Operation *yield_op = body.front().getTerminator();
        Value yield_operand = yield_op->getOperand(result_idx);
        Value while_operand = op.getOperand(result_idx);
        Value body_arg = body.getArgument(result_idx);
        Value cond_arg = cond.getArgument(result_idx);
        if (yield_operand != body_arg && yield_operand != while_operand) {
          return op.emitOpError("Result #") << result_idx << " is not tied to arg #"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

        // yield %cond, [...passthrough args...]
        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
    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