- Sort Score
- Result 10 results
- Languages All
Results 11 - 17 of 17 for getNumRegions (0.21 sec)
-
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
output_types, quantizing_op->getAttrs()); for (int i = 0; i < quantizing_op->getNumRegions(); ++i) { new_state.addRegion(); } Operation* quantized_op = rewriter.create(new_state); if (quantizing_op->getNumRegions() != 0) { for (const auto& indexed_regions : llvm::enumerate(quantizing_op->getRegions())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc
for (const auto& index_and_output : llvm::enumerate(partitioned_output.getOutput())) { auto idx = (cluster_idx + index_and_output.index()) % new_parallel_execute->getNumRegions(); const auto output_from_logical_device = new_parallel_execute.GetRegionOutputs( idx)[tpu_cluster_output_index]; index_and_output.value().replaceAllUsesWith(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 21:28:13 UTC 2024 - 34K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
op_with_region->getName().getStringRef(), inputs, output_types, op_with_region->getAttrs()); for (int i = 0; i < op_with_region->getNumRegions(); ++i) { new_state.addRegion(); } Operation* quantized_op = rewriter.create(new_state); for (const auto& [index, region] : llvm::enumerate(op_with_region->getRegions())) {
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
auto new_op = OpBuilder(case_op).create<TF::CaseRegionOp>( case_op.getLoc(), first_branch->front().getTerminator()->getOperandTypes(), case_op.getOperand(), case_op->getAttrs(), case_op.getNumRegions()); for (const auto& entry : output_buffer_to_size) { (*buffer_to_size)[new_op.getResult(std::get<0>(entry))] = { new_op.getResult(std::get<1>(entry)), std::get<2>(entry)}; }
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/ir/tf_ops_a_m.cc
auto new_op = CreateTfOp<CaseOrIfRegionOp>(rewriter, op, new_result_types, op.getOperand(), op->getAttrs(), op.getNumRegions()); int next_index = 0; for (auto result : op.getResults()) { if (!result_to_extern_value.count(result)) { result.replaceAllUsesWith(new_op.getResult(next_index++)); continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
LogicalResult matchAndRewrite( mhlo::WhileOp while_op, OpAdaptor adaptor, ConversionPatternRewriter& rewriter) const final { // HLO WhileOp should have two regions: cond and body. if (while_op->getNumRegions() != 2) return failure(); // This rule doesn't support mhlo::WhileOp with tuple inputs. for (auto type : while_op->getOperandTypes()) { if (mlir::isa<TupleType>(type)) return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
} else { mhlo_op = rewriter.create<DstOpT>(loc, op.getResultTypes(), adaptor.getOperands()); } int64_t num_regions = op.getNumRegions(); for (int64_t idx = 0; idx < num_regions; ++idx) { Region ®ion = mhlo_op.getBodyRegion(idx); rewriter.inlineRegionBefore(op.getBodyRegion(idx), region, region.end());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)