- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 156 for GetBody (0.11 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
//===----------------------------------------------------------------------===// FetchOp GraphOp::GetFetch() { return llvm::cast<FetchOp>(GetBody().back()); } LogicalResult GraphOp::verify() { GraphOp graph = *this; auto *executorDialect = graph->getDialect(); if (graph.GetBody().empty()) return graph.emitOpError() << "expects a non-empty body";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc
MakeShapeOpInvariant(replicate_op, num_replicas, replicate_block, shape_op); }); Region* replicate_region = &replicate_op.getBody(); std::optional<DictionaryAttr> virtual_device_list = replicate_op.getDevices(); for (Operation& inner_op : llvm::make_early_inc_range(replicate_op.GetBody())) { if (llvm::isa<tf_device::ReturnOp>(inner_op)) continue; // Skip hoisting if the inner op device attribute is a virtual device
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/quantization/tensorflow/passes/insert_save_op.cc
SmallVector<TF::VarHandleOp> CloneVarHandleOpsIntoSaveFunc( func::FuncOp save_func, const ArrayRef<TF::VarHandleOp> var_handle_ops) { Block& save_op_block = save_func.getBody().front(); IRMapping mapper{}; SmallVector<TF::VarHandleOp> cloned_var_handle_ops = {}; for (auto var_handle_op : var_handle_ops) { Operation* cloned_var_handle_op = var_handle_op->clone(mapper);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc
func_op.getArguments().take_back(call_op.getNumOperands()), call_op.getOperands())) { arg_mapper.map(func_arg, operand); } Region& function_body = func_op.getBody(); IRMapping new_op_mapper; for (Operation& op : function_body.getOps()) { if (llvm::isa<func::ReturnOp>(op)) { for (auto [call_result, return_value] :
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc
// Unwrap from any ControlNodeOps or CustomTfOp. if (auto control_node = dyn_cast<mlir::TFL::ControlNodeOp>(*op)) { return IsFlexDelegate(&control_node.getBody().front().front()); } if (auto custom_tf_op = dyn_cast<mlir::TFL::CustomTfOp>(*op)) { return IsFlexDelegate(&custom_tf_op.getBody().front().front()); } // Our MLIR might be the result of a conversion from a previously generated // flatbuffer file.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 15:05:28 UTC 2023 - 7.2K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/fixtures/ExternalProcessFixture.groovy
} private String getCommandLineAsVarargLiterals() { return ShellScript.cmdToVarargLiterals(testExecutable.commandLine) } interface Snippets { abstract String getBody() abstract String getImports() } interface SnippetsFactory { abstract Snippets newSnippets(ExternalProcessFixture fixture) abstract String getSummary() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc
if (block_arg && block_arg.getOwner() == &replicate.GetBody()) { // Only mirrored args of ReplicateOp can be annotated. if (mirrored_replicate_args.count(block_arg.getArgNumber()) == 0) { continue; } } else if (!operand.getParentRegion()->isProperAncestor( &replicate.getBody())) { // Not a replication-invariant operand. continue; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/update_control_dependencies.cc
GraphOp graph, TF::OpToParallelIdsMap& op_to_parallel_ids_map) { for (Operation& op : graph.GetBody()) { auto island = dyn_cast<IslandOp>(&op); if (!island) continue; // We call `VerifyExportSuitable` in the beginning of the pass, so every // island wraps a single op. Operation& wrapped_op = island.GetBody().front(); TF::ParallelExecutionIdPairs id_pairs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 30 07:53:51 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc
std::get<0>(result).replaceAllUsesWith(std::get<1>(result)); } rewriter.setInsertionPoint(cloned_func.getBody().front().getTerminator()); rewriter.create<TF::_XlaSendFromHostOp>( func.getLoc(), cloned_func.getBody().front().getTerminator()->getOperands(), /*dynamic_key=*/dynamic_key, op.getRecvKeyAttr(), /*device_ordinal=*/rewriter.getI64IntegerAttr(0),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc
Region* cluster_region = &cluster.getBody(); llvm::SmallSetVector<Operation*, 4> head_outside_compiled_ops; // Traverse the graph in topological order to find all outside compiled ops // at head of TPU computation or unary ops that are only used by other outside // compiled ops. auto cluster_ops = cluster.GetBody().without_terminator(); for (Operation& cluster_op : cluster_ops) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0)