- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for getParentRegion (0.31 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/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/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) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
bool is_region_capture = replicate_operand.getParentRegion()->isProperAncestor(&body); bool has_other_use_in_body = llvm::any_of(replicate_operand.getUsers(), [&](Operation* user) { // Ignore uses that are not in the while body or condition. if (!body.isAncestor(user->getParentRegion()) && !cond.isAncestor(user->getParentRegion())) return false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc
llvm::dyn_cast_or_null<tf_device::ParallelExecuteOp>(parent)) { int operand_idx = use->getOperandNumber(); auto execute_results = execute.GetRegionOutputs( device_return->getParentRegion()->getRegionNumber()); if (operand_idx >= execute_results.size()) return nullptr; auto result_from_use = execute_results[operand_idx]; if (!result_from_use.hasOneUse()) return nullptr;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 04:14:26 UTC 2024 - 7.5K bytes - Viewed (0)