- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetRegionBlockWithIndex (0.75 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/parallel_execute_util.cc
auto parallel_execute = builder->create<tf_device::ParallelExecuteOp>( cluster_func.getLoc(), 1, output_types); cluster_func->remove(); auto& block = parallel_execute.GetRegionBlockWithIndex(0); builder->setInsertionPointToEnd(&block); builder->insert(cluster_func); cluster_func.replaceAllUsesWith(parallel_execute); builder->create<tf_device::ReturnOp>(block.getParent()->getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 13 03:57:18 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_parallel_execute_sink_resource_write.cc
llvm::SmallVector<llvm::SmallVector<int, 4>, 4> results_to_remove_by_region; results_to_remove_by_region.resize(num_regions); for (int i = 0; i < num_regions; ++i) { Block& block = parallel_execute.GetRegionBlockWithIndex(i); auto results = parallel_execute.GetRegionOutputs(i); auto& results_to_remove = results_to_remove_by_region[i]; results_to_remove.reserve(results.size()); Operation* terminator = block.getTerminator();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 06 04:46:18 UTC 2022 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util.cc
// will be replaced. int cluster_idx = -1; for (size_t child_idx = 0; child_idx < old_parallel_execute.getRegions().size(); ++child_idx) { auto& block = old_parallel_execute.GetRegionBlockWithIndex(child_idx); if (cluster_func->getBlock() == &block) { assert(cluster_idx == -1); cluster_idx = child_idx; } } assert(cluster_idx != -1); // Move children that are preserved.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 13 03:57:18 UTC 2023 - 4.4K bytes - Viewed (0)