- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 47 for getRegions (0.27 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/analysis/side_effect_analysis.cc
} } else if (isa<tf_device::LaunchOp, tf_device::ClusterOp, tf_executor::IslandOp, tf_executor::GraphOp, IfRegionOp, CaseRegionOp>(op)) { for (Region& region : op->getRegions()) { AddRegionSideEffectsForOp(region, op); } } else if (auto xla_call_module_op = dyn_cast<XlaCallModuleOp>(op)) { for (auto func_symbol : xla_call_module_op.getFunctionList().getAsRange<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 41.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc
// _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; }); return !has_replicate_operands; }
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/analysis/resource_alias_analysis.cc
// but we also need to analyze regions attached to other ops. module->walk([this](Operation* op) { if (op->hasTrait<OpTrait::NoTerminator>()) return; for (Region& region : op->getRegions()) GetOrCreateAnalysis(region); }); } // Backtracks the definition of `value` looking through passthrough ops. // Returns a non-null value and can return `value` if backtracking is not // possible.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
for (int i = 0; i < op->getNumRegions(); ++i) { state.addRegion(); } Operation* new_op = builder.create(state); for (const auto& indexed_regions : llvm::enumerate(op->getRegions())) { Region& region = op->getRegion(indexed_regions.index()); IRMapping mapping; indexed_regions.value().cloneInto(®ion, mapping); } int new_position = 0; for (auto result : op->getResults()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
new_state.addRegion(); } Operation* quantized_op = rewriter.create(new_state); for (const auto& [index, region] : llvm::enumerate(op_with_region->getRegions())) { Region& target_region = quantized_op->getRegion(index); IRMapping mapping; region.cloneInto(&target_region, mapping); } const Type operand_type = quantized_op->getOperandTypes()[0];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
(*buffer_to_size)[new_op.getResult(std::get<0>(entry))] = { new_op.getResult(std::get<1>(entry)), std::get<2>(entry)}; } for (auto pair : llvm::zip(new_op.getRegions(), case_op.getRegions())) { std::get<0>(pair)->takeBody(*std::get<1>(pair)); } case_op.replaceAllUsesWith( new_op.getResults().take_front(case_op.getNumResults())); case_op.erase(); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
execute_launch.erase(); // Move all regions from old parallel_execute to new parallel_execute. for (auto region : llvm::zip(new_parallel_execute_op->getRegions(), parallel_execute_op->getRegions())) std::get<0>(region).takeBody(std::get<1>(region)); // Remove the original parallel_execute. parallel_execute_op->dropAllUses(); parallel_execute.erase(); }
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/quantization/stablehlo/passes/convert_func_to_bfloat16.cc
OperationState state(op->getLoc(), op->getName().getStringRef(), operands, new_results, op->getAttrs(), op->getSuccessors()); for (Region& region : op->getRegions()) { Region& new_region = *state.addRegion(); rewriter.inlineRegionBefore(region, new_region, new_region.begin()); if (failed(rewriter.convertRegionTypes(&new_region, *getTypeConverter())))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.3K bytes - Viewed (0)