- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 67 for GetBody (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc
if (call.getOperation()->getNumOperands() != f.getBody().front().getNumArguments()) { return failure(); // RemoteCall et al } rewriter.startOpModification(f); bool changed = false; for (auto [call_arg, body_arg] : llvm::zip(call.getOperation()->getOperands(), f.getBody().front().getArguments())) { if (call_arg.getType() != body_arg.getType()) {
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/tensorflow/transforms/sparsecore/embedding_program_key.cc
auto launch = builder->create<tf_device::LaunchOp>( before_op->getLoc(), builder->getStringAttr(host_device), launch_result_types); launch.getBody().push_back(launch_block); builder->setInsertionPointToEnd(&launch.GetBody()); builder->create<tf_device::ReturnOp>(before_op->getLoc(), launch_results); return launch; } // Creates a new_launch after `before_op` with `ops_to_move` from
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc
IRMapping mapper = CloneSrcFuncArgumentsToMainFunc(src_func_op, main_func_op); // Clones each op from src to main_body. Block& main_body = main_graph_op.GetBody(); Block& src_body = src_graph_op.GetBody(); for (Operation& op : src_body.without_terminator()) { main_body.push_back(op.clone(mapper)); } // Relocate the main function's FetchOp at the last.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:54:52 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
unsigned ReplicateOp::GetNumReplicatedBlockArguments() { return GetBody().getNumArguments() - GetNumPackedBlockArguments(); } // Returns the replicated block arguments. A copy should be made if the // replicate op is being modified. llvm::ArrayRef<BlockArgument> ReplicateOp::GetReplicatedBlockArguments() { return GetBody().getArguments().drop_back(GetNumPackedBlockArguments()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0) -
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) -
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/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/lite/transforms/reduce_while_operands.cc
auto new_while_op = OpBuilder(while_op).create<WhileOp>( while_op.getLoc(), new_result_types, new_operands, while_op->getAttrs()); new_while_op.getCond().takeBody(while_op.getCond()); new_while_op.getBody().takeBody(while_op.getBody()); for (auto i = 0; i < n; ++i) { if (!while_op.getResult(i).use_empty()) { auto j = id_map[i]; while_op.getResult(i).replaceAllUsesWith(new_while_op.getResult(j)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc
llvm::MutableArrayRef<tf_device::LaunchOp> execute_launches, const TF::ResourceAliasAnalysis::Info& resource_alias_analysis) { auto compile = llvm::cast<TF::_TPUCompileMlirOp>(compile_launch.GetBody().front()); tensorflow::tpu::TPUCompileMetadataProto metadata; metadata.ParseFromString(compile.getMetadata().str()); llvm::SmallVector<llvm::SmallVector<int64_t, 4>, 4> input_mappings =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc
/*padding=*/DenseIntElementsAttr(nullptr)); // Clone the reduce body. It is not affected by the permutation. IRMapping mapping; op.getBody().cloneInto(&new_reduce_window_op.getBody(), mapping); // Introduce a transpose to the result to match the shapes of `op`'s uses. TransposeOp result_transpose_op = CreateTransposeOp(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0)