- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for getParentRegion (0.36 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/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/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/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) -
tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc
Type expressed_type = value.getType(); Type new_type = quant_params.castFromExpressedType(expressed_type); // This value isn't an expressed type (float), skip. if (!new_type) return; Block &block = value.getParentRegion()->front(); Operation *op = value.getDefiningOp(); if (op) { builder.setInsertionPoint(&block, ++Block::iterator(op)); } else { builder.setInsertionPointToStart(&block); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.4K bytes - Viewed (0)