- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 83 for GetBody (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tf_functional_to_executor.cc
} builder.create<tf_executor::FetchOp>(loc, to_fetch); // Build Island. island.getBody().push_back(new Block); island.getBody().front().getOperations().splice( island.getBody().front().begin(), body.getOperations(), copy_range.begin(), copy_range.end()); builder.setInsertionPointToEnd(&island.getBody().front()); builder.create<tf_executor::YieldOp>(loc, return_op.getOperands());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc
if (!graph_op) { func.emitError("expected function to contain only a graph_op"); signalPassFailure(); return; } if (!(llvm::hasSingleElement(graph_op.GetBody().without_terminator()) && llvm::isa<tf_executor::IslandOp>(graph_op.GetBody().front()))) { graph_op.emitError( "expected graph op to contain only a single island_op and a single " "fetch_op"); signalPassFailure(); return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
auto new_launch_op = builder.create<tf_device::LaunchOp>( old_launch_op->getLoc(), old_launch_op->getDeviceAttr(), /*result_types=*/new_launch_op_results_types); new_launch_op.getBody().takeBody(old_launch_op->getBody()); new_launch_op.GetBody().getTerminator()->setOperands(new_launch_op_results); return new_launch_op; } // Create the new device launch op which wraps the copy op. LogicalResult CreateNewDeviceLaunchOp(
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/tpu_colocate_composite_resource_ops.cc
loc, builder->getStringAttr(device), op->getResultTypes()); launch.getBody().push_back(new Block); op->replaceAllUsesWith(launch); builder->setInsertionPointToEnd(&launch.GetBody()); builder->create<tf_device::ReturnOp>(loc, op->getResults()); // Move op inside cluster. op->moveBefore(launch.GetBody().getTerminator()); } llvm::SmallVector<Operation*, 4> GetResourceOpsUsingCompositeArgsInReplicate(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 16 17:41:12 UTC 2023 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
// new function later. { YieldOp yield_op = island_op.GetYield(); outlined_func.getBody().takeBody(island_op.getBody()); // Replace the yield with a return OpBuilder replacer(yield_op); island_op.getBody().push_back(new Block); replacer.create<mlir::func::ReturnOp>(yield_op.getLoc(), yield_op.getOperands());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc
// arguments. Region& op_region = op.getBody(); for (auto p : llvm::zip(live_ins, outlined_func_block->getArguments())) { replaceAllUsesInRegionWith(std::get<0>(p), std::get<1>(p), op_region); } // Move all instructions in cluster_op into outlined_function's only block. auto& op_body = op.GetBody().getOperations(); outlined_func_block->getOperations().splice(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc
removed_params.set(i); callee.getBody().addArgument(param.getType(), param.getLoc()); param.replaceAllUsesWith(callee.getArguments().back()); removed_params.push_back(false); } } // Remove old resource-type parameters. callee.getBody().front().eraseArguments(removed_params); // Update function type.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc
llvm::SmallVectorImpl<Operation*>* ops_to_visit) { if (auto island = llvm::dyn_cast<IslandOp>(op)) { mlir::visitUsedValuesDefinedAbove( island.getBody(), island.getBody(), [&](OpOperand* operand) { VisitOpOperand(graph, operand->get(), reachable_ops, ops_to_visit); }); } VisitOpOperands(graph, op, reachable_ops, ops_to_visit);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc
// one resource op and one Yield op. auto island_op = llvm::dyn_cast_or_null<IslandOp>(op); if (!island_op || !island_op.getBody().hasOneBlock()) return nullptr; auto& island_block = island_op.getBody().front(); if (++island_block.begin() != --island_block.end()) return nullptr; Operation* resource_op = &island_block.front();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 26 04:26:16 UTC 2023 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc
launch.replaceAllUsesWith(launch.GetBody().getTerminator()->getOperands()); // For all inner ops, assign the launch device as a `device` attribute. if (failed(AssignDevicesInRegion(tf_dialect, launch, launch.getBody()))) return failure(); // Move all inner ops of the launch to the block containing the launch. auto body = launch.GetBody().without_terminator();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0)