- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 81 for getRegion (0.53 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
OperationState state(op->getLoc(), op->getName().getStringRef(), operands, new_results, op->getAttrs(), op->getSuccessors()); for (Region ®ion : 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 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
auto attribute_type = rewriter.getIntegerType(64); rewriter.replaceOpWithNewOp<TF::StridedSliceOp>( op, strided_slice_op.getType(), reshape, strided_slice_op.getBegin(), strided_slice_op.getEnd(), strided_slice_op.getStrides(), rewriter.getIntegerAttr(attribute_type, revised_begin_mask), rewriter.getIntegerAttr(attribute_type, revised_end_mask),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc
builder.setInsertionPoint(&item); OperationState state(item.getLoc(), item.getName()); types.assign(item.result_type_begin(), item.result_type_end()); state.addTypes(types); for (Region& region : item.getRegions()) { state.addRegion()->takeBody(region); } // Assign existing operands for item. operands.assign(item.operand_begin(), item.operand_end()); // Collect defining ops for existing operands.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 16.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
<< result.getResultNumber() << ", resource type results are expected to have been " "canonicalized away for region based control flow ops"; } } for (Region& region : op.getRegions()) { if (failed(DecomposeStackOpsInternal(®ion.front(), module, data_var_to_size_var, decomposed_partitioned_call_callees)))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
if (!input_type || !input_type.hasStaticShape()) return failure(); if (input_type.getRank() >= 4) return failure(); auto begin = slice_op.getBegin(); auto begin_type = mlir::dyn_cast_or_null<RankedTensorType>(begin.getType()); if (!begin_type || !begin_type.hasStaticShape()) return failure(); auto size = slice_op.getSize();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
// If there is no TPUReplicateMetadata op in this block, process blocks in // regions attached to the op's in the block. if (metadata_map.empty()) { for (Operation& op : *block) { for (Region& region : op.getRegions()) { if (!llvm::hasSingleElement(region)) return op.emitOpError("Expected single block region"); if (failed(FormClustersInBlock(®ion.front(), side_effect_analysis,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc
<< ", resource type results are expected to have been " "canonicalized away for region based control flow ops"; } } for (Region& region : op.getRegions()) { if (failed(DecomposeTensorArrayOps(®ion.front(), module, stats, decomposed_partitioned_call_callees))) return failure(); } return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 40.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
if (!matchPattern(constant_val, m_Constant(&added_value))) return failure(); // Check the add op is applied to begin. mlir::TypedValue<::mlir::TensorType> begin_tensor = strided_slice_op.getBegin(); mlir::TypedValue<::mlir::TensorType> add_source_tensor = add_op ? add_op.getLhs() : sub_op.getLhs(); if (begin_tensor != add_source_tensor) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
LogicalResult matchAndRewrite(TF::SliceOp op, PatternRewriter &rewriter) const override { Location loc = op.getLoc(); Value input = op.getInput(); Value begin_indices = op.getBegin(); Value sizes = op.getSize(); auto input_ty = mlir::dyn_cast<RankedTensorType>(input.getType()); auto begin_type = mlir::dyn_cast<RankedTensorType>(begin_indices.getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
// each region and the use of TensorList returned using YieldOp. if (auto while_region = llvm::dyn_cast<WhileRegionOp>(use.getOwner())) { DCOMMENT("\tTL WhileRegion"); for (auto branch : while_region.getRegions()) add_to_worklist(branch->getArgument(use.getOperandNumber())); continue; } if (auto yield = llvm::dyn_cast<YieldOp>(use.getOwner())) { Operation* parent = yield->getParentOp();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0)