- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for getParentRegion (0.33 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc
if (!ancestor_of_replicate(operand.getParentRegion())) return false; // _TPUDeviceOrdinalPlaceholder implicitly depends on the replica. if (llvm::isa<TF::_TPUDeviceOrdinalPlaceholderOp>(op)) return false; bool has_replicate_operands = false; visitUsedValuesDefinedAbove(op->getRegions(), [&](OpOperand* operand) { if (!ancestor_of_replicate(operand->get().getParentRegion())) has_replicate_operands = true; });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
auto read_op = llvm::dyn_cast_or_null<TF::ReadVariableOp>( operand.value().get().getDefiningOp()); if (!read_op) continue; if (check_same_region && read_op->getParentRegion() != execute_parent->getParentRegion()) continue; auto resource = read_op.getResource(); if (check_device) { // TODO(lyandy): Wrap resource ops in tf_device.launch.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc
Value from = std::get<0>(p); // TODO(jingpu): move this to RegionUtils.h in MLIR core. for (auto& use : llvm::make_early_inc_range(from.getUses())) { if (launch_op_region->isAncestor(use.getOwner()->getParentRegion())) continue; use.set(std::get<1>(p)); } } } // Get all escaped live-out values of a region. void GetLiveOuts(Region* region, llvm::SmallVectorImpl<Value>* live_outs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 05 13:30:21 UTC 2023 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
old_launch_op->GetBody().getTerminator()->getOperands().end()); for (Value operand : tpu_copy_with_dynamic_shape_op->getOperands()) { if (GetOpOfValue(operand)->getParentRegion() == tpu_copy_with_dynamic_shape_op->getParentRegion()) { new_launch_op_results.insert(operand); } } for (Value result : tpu_copy_with_dynamic_shape_op->getResults()) { new_launch_op_results.remove(result);
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/hoist_replicate_invariant_resource_writes.cc
if (auto assign = llvm::dyn_cast<TF::AssignVariableOp>(op)) { Value resource_var = assign.getResource(); if (visited_resources.contains(resource_var) || !resource_var.getParentRegion()->isProperAncestor( &replicate_op.getRegion())) continue; tail_assign_variable_ops.push_back(assign); } for (Value resource : op_accessed_resources)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
HasDynamicOutputs(operand.getOwner())) { return insertion_point->getParentRegion()->isAncestor( operand.getOwner()->getParentRegion()); } return insertion_point->getParentRegion()->isAncestor( operand.getOwner()->getParentRegion()) || (HasOutsideCompilationAncestor(operand.getOwner()) &&
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/tpu_dynamic_layout_pass.cc
// For a block argument, consider transforms only when it is a // replicated input (defining ops will be outside the replicate node). if (maybe_replicate != block_arg.getParentRegion()->getParentOp() || !HandleReplicatedInputs(execute_arg_index, execute.getKey(), execute_launch, compile_launch, block_arg,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc
// Skip the folding logic if the block argument is not from the function // arguments. This can happen when the argument is from a while loop. if (block_arg.getParentRegion() != &func_op.getRegion()) { return false; } if (StringAttr attr = func_op.getArgAttrOfType<StringAttr>( block_arg.getArgNumber(), kTFDeviceAttr)) { return op_device == attr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc
for (Value operand : op->getOperands()) { Operation* operand_op = GetOpOfValue(operand); if (head_outside_compiled_ops.count(operand_op)) continue; if (operand_op->getParentRegion() == cluster_region) return WalkResult::interrupt(); } return WalkResult::advance(); }); if (!walk_result.wasInterrupted())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc
// Only mirrored args of ReplicateOp can be annotated. if (mirrored_replicate_args.count(block_arg.getArgNumber()) == 0) { continue; } } else if (!operand.getParentRegion()->isProperAncestor( &replicate.getBody())) { // Not a replication-invariant operand. continue; } func.setArgAttr(entry.index(), kReplicationAttr,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0)