- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for getTerminator (0.35 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
Operation* tpu_copy_with_dynamic_shape_op) { llvm::SmallSetVector<Value, 4> new_launch_op_results; new_launch_op_results.insert( old_launch_op->GetBody().getTerminator()->getOperands().begin(), old_launch_op->GetBody().getTerminator()->getOperands().end()); for (Value operand : tpu_copy_with_dynamic_shape_op->getOperands()) { if (GetOpOfValue(operand)->getParentRegion() ==
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
cloned_cond.eraseArgument(idx); cloned_body.front().getTerminator()->eraseOperand(idx); cloned_body.eraseArgument(idx); } // Patch up branch function types. for (func::FuncOp func : {cloned_cond, cloned_body}) { func.setType( FunctionType::get(func.getContext(), func.front().getArgumentTypes(), func.front().getTerminator()->getOperandTypes())); }
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/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
} mlir::tf_device::LaunchOp launch = CreateLaunchForBlock( builder, cluster, /*before=*/true, launch_block, host_device); for (auto result : llvm::zip(launch.GetBody().getTerminator()->getOperands(), launch.getResults())) replaceAllUsesInRegionWith(std::get<0>(result), std::get<1>(result), cluster.getBody()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
for (OpOperand& operand : reduced_launch_op.GetBody().getTerminator()->getOpOperands()) { reduced_return_operand_map.insert( {operand.get(), operand.getOperandNumber()}); } for (int i = 0; i < original_launch_op->getNumResults(); i++) { Value operand = original_launch_op.GetBody().getTerminator()->getOperand(i); auto defining_op = operand.getDefiningOp();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_tf_control_flow_to_scf.cc
// If `destination_block` isn't empty, erase its terminator to ensure that it // never contains two terminator-like ops after merging. if (!destination_block->empty()) rewriter.eraseOp(destination_block->getTerminator()); destination_block->addArguments( block_arguments_type, SmallVector<Location>(block_arguments_type.size(), source_block->getParent()->getLoc()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 9.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_parallel_execute_sink_resource_write.cc
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(); for (auto result : llvm::enumerate(results)) { TF::AssignVariableOp assign_var = GetSingleUseResourceWrite(parallel_execute, result.value()); if (!assign_var) {
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/transforms/merge_control_flow.cc
replaceAllUsesInRegionWith( result, it->getThenBranch().front().getTerminator()->getOperand( result.getResultNumber()), it2->getThenBranch()); replaceAllUsesInRegionWith( result, it->getElseBranch().front().getTerminator()->getOperand( result.getResultNumber()), it2->getElseBranch()); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 25.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
GetOpOfValue(cluster_func_operand.value())); if (!device_launch_op) continue; for (auto result : llvm::zip( device_launch_op.getResults(), device_launch_op.GetBody().getTerminator()->getOperands())) { if (std::get<0>(result) == cluster_func_operand.value() && llvm::isa<TF::TPUAnnotateTensorsWithDynamicShapeOp>( std::get<1>(result).getDefiningOp())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
{host_if.getThenBranch().front().getTerminator()}, core_to_compilation_key, core_to_device_ordinal, /*control_above=*/true, is_map_oc, communication_key_index))) return WalkResult::interrupt(); if (failed(MoveToHostMultiCluster( device_cluster, &if_op.getElseBranch().front(), {host_if.getElseBranch().front().getTerminator()},
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
RegionRange regions) { for (Region* region : regions) { assert(llvm::hasSingleElement(*region) && "Expected single block region"); Block& front = region->front(); auto old_return = front.getTerminator(); assert(old_return->getNumOperands() == op_->getNumResults()); auto new_return_operands = llvm::to_vector<4>(old_return->getOperands()); new_return_operands.resize(num_new_results_);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0)