- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 34 for IslandOp (0.33 sec)
-
tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
} void collect_input_defining_islands(IslandOp op, std::vector<IslandOp>& ops) { Operation* wrapped_op = &op.GetBody().front(); for (Value operand : wrapped_op->getOperands()) { IslandOp wrapper = dyn_cast_or_null<IslandOp>(operand.getDefiningOp()); if (!wrapper || !wrapper.WrapsSingleOp()) continue; ops.push_back(wrapper); } } void collect_output_users_islands(IslandOp op, std::vector<IslandOp>& ops) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc
// Construct a new island from the given root. explicit MergedIsland(IslandOp root) : insert_point(root) { islands.push_back(root); } // The insertion point anchor of the merged island, or where the merged island // will be inserted when created. Operation* const insert_point; // The set of islands that are to be merged together. SmallVector<IslandOp> islands; };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/check_control_dependencies.cc
bool FindPathBfs(IslandOp source_op, IslandOp target_op, std::vector<IslandOp>& path) { std::queue<IslandOp> worklist; // Stores predecessor pointers. IslandToIslandHashMap pred_map; // BFS starting from `source_op`, stop when `target_op` is reached. worklist.push(source_op); while (!worklist.empty()) { IslandOp curr_op = worklist.front(); worklist.pop();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc
// We only call this function for island or fetch ops. The second pair of // parentheses is needed for successful compilation. assert((isa<IslandOp, FetchOp>(op))); mlir::MutableOperandRange mutable_control_inputs = isa<IslandOp>(op) ? cast<IslandOp>(op).getControlInputsMutable() : cast<FetchOp>(op).getFetchesMutable(); // Add control inputs in program order of the defining ops.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 30 07:53:51 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
// (from YieldOps first operand) is forwarded to the IslandOp single data result // users. struct DropEmptyIslandNoOperandOneDataResult : public OpRewritePattern<IslandOp> { using OpRewritePattern<IslandOp>::OpRewritePattern; LogicalResult matchAndRewrite(IslandOp op, PatternRewriter &rewriter) const override {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc
// of the parallel_execute op gets executed concurrently. void ExpandParallelExecuteToIslands( tf_executor::IslandOp island_op, tf_device::ParallelExecuteOp parallel_execute_op, OpBuilder* builder, llvm::SmallVectorImpl<tf_executor::IslandOp>& executes, bool legacy_graph_export, int parallel_group_idx) { const int num_regions = parallel_execute_op.getOperation()->getNumRegions();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 19 19:47:16 UTC 2023 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc
new_op->setAttrs(item.getAttrDictionary()); item.erase(); } AddStatefulControlFlowDependencies(graph_op); } // Populates an empty IslandOp and with a NoOp or Identity/IdentityN depending // on if there are any data results. void PopulateEmptyIsland(tf_executor::IslandOp island) { OpBuilder builder(&island.GetBody(), island.GetBody().begin()); tf_executor::YieldOp yield = island.GetYield();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 16.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc
ShapedType const_type) { IslandOp while_wrapper = while_op->getParentOfType<IslandOp>(); assert(while_wrapper && "While op is expected to be wrapped in a IslandOp"); // Get the dummy constant. OpBuilder builder(while_wrapper); auto loc = NameLoc::get( builder.getStringAttr("chain_control_outputs@" + while_op.getBody())); IslandOp const_wrapper = GetDummyConstant(builder, const_type, loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc
GraphPruningPass() = default; explicit GraphPruningPass(llvm::ArrayRef<std::string> ops_to_preserve); void runOnOperation() override; private: bool ShouldPreserveOp(Operation* op); bool ShouldPreserveIsland(IslandOp island); void PruneGraph(GraphOp graph); llvm::SmallDenseSet<mlir::StringAttr, 4> ops_to_preserve_ids_; }; // Checks if a tf_executor.Graph can be pruned.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 7.6K bytes - Viewed (0)