- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for modifyOpInPlace (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/fold_broadcast.cc
if (broadcasted_shape != result_type.getShape()) continue; // Update the operand of the op to be the operand of the broadcast. rewriter.modifyOpInPlace( op, [&]() { op->getOpOperand(i).set(broadcast.getInput()); }); changed = true; } return success(changed); } void BroadcastFoldPass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
} auto newType = FunctionType::get(rewriter.getContext(), argument_types, return_types); if (f.getFunctionType() == newType) { return failure(); } rewriter.modifyOpInPlace(f, [&] { f.setType(newType); }); // Adjust the type of the return values callers of the function to // match the "func.return" within the function. // // So this would transform
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc
IRRewriter rewriter(op->getContext()); op->walk([&](Operation *op) { if (op->getDialect()->getNamespace() != "vhlo") return; // Convert operands rewriter.modifyOpInPlace(op, [&]() { rewriter.setInsertionPoint(op); WrapOperandsInUnrealizedCastAndConvert(op, converter, rewriter); // Convert op types for (auto value : op->getResults()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 19:48:51 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
using OpConversionPattern::OpConversionPattern; LogicalResult matchAndRewrite( func::ReturnOp op, OpAdaptor adaptor, ConversionPatternRewriter &rewriter) const override { rewriter.modifyOpInPlace(op, [&] { op->setOperands(adaptor.getOperands()); }); return success(); } }; struct ConvertYield : public OpConversionPattern<TF::YieldOp> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0)