- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 229 for getOperation (0.24 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc
// Move all inner ops of the launch to the block containing the launch. auto body = launch.GetBody().without_terminator(); Operation* launch_op = launch.getOperation(); launch_op->getBlock()->getOperations().splice( launch_op->getIterator(), launch.GetBody().getOperations(), body.begin(), body.end()); launch.erase(); return success(); } void LaunchToDeviceAttributePass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/trim_functions_tf.cc
// SymbolRefAttrs of all ops are present. SymbolTable symbol_table = SymbolTable(getOperation()); llvm::SetVector<func::FuncOp> reachable_funcs; for (auto func : getOperation().getOps<func::FuncOp>()) { auto walk_result = func.walk([&](func::CallOp op) -> WalkResult { if (!symbol_table.lookup<func::FuncOp>(op.getCallee())) return getOperation().emitError() << func.getName() << " is not in the funcs allowlist";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 07 21:08:41 UTC 2022 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_device_assignment.cc
default_device_ = std::string(default_device); } void runOnOperation() override { Builder builder(&getContext()); Dialect* tf = getContext().getLoadedDialect<TensorFlowDialect>(); getOperation().walk([&](Operation* op) { if (auto device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) { // We assign default device to ops with device attribute that is empty. if (device_attr.getValue().empty()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replica_id_to_device_ordinal.cc
const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); if (!tf_dialect) { getOperation().emitError() << "'tf' dialect is not registered"; return signalPassFailure(); } // Get the number of devices per host. int device_num = 0; mlir::TF::RuntimeDevices devices; if (failed(tensorflow::GetDevicesFromOp( getOperation()->getParentOfType<ModuleOp>(), &devices))) return signalPassFailure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h
// Update types for all layout sensitive results. auto layout_sensitive = cast<LayoutSensitiveInterface>(op->getOperation()); for (unsigned idx : layout_sensitive.GetLayoutDependentResults()) { OpResult result = op->getOperation()->getResult(idx); result.setType(ShuffleRankedTensorType(result.getType(), perm)); } return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/device_index_selector.cc
: public impl::DeviceIndexSelectorPassBase<DeviceIndexSelector> { void runOnOperation() override; }; } // namespace void DeviceIndexSelector::runOnOperation() { func::FuncOp func = getOperation(); // Convert all the DeviceIndex ops to constant values. func.getBody().walk([](TF::DeviceIndexOp op) { // This just selects the default in all cases where DeviceIndex feeds into
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_parallel_execute_sink_resource_write.cc
if (resource_handle_op == parallel_execute) return nullptr; if (resource_handle_op && resource_handle_op->getBlock() == parallel_execute.getOperation()->getBlock() && parallel_execute.getOperation()->isBeforeInBlock(resource_handle_op)) return nullptr; return assign_var; } // Finds AssignVariableOps that can be moved into a parallel_execute region and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 06 04:46:18 UTC 2022 - 6.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import_test_pass.cc
return "generate a temporary file and invoke InitTextFileToImportPass"; } private: void runOnOperation() override; }; void InitTextFileToImportTestPass::runOnOperation() { ModuleOp module = getOperation(); // Create a temporary vocab file. int fd; SmallString<256> filename; std::error_code error_code = llvm::sys::fs::createTemporaryFile("text", "vocab", fd, filename);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 09:19:38 UTC 2022 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_tensor_list_init_ops_pass.cc
std::vector<OpOperand*> uses; for (auto& use : tensor_list.getUses()) { uses.emplace_back(&use); } OpBuilder builder(tensor_list_op.getOperation()); for (OpOperand* operand : uses) { auto new_op = builder.clone(*tensor_list_op.getOperation()); operand->set(new_op->getResult(0)); } } // This transformation pass replicates TensorList initialization ops. class ReplicateTensorListInitOps
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Jan 22 17:28:34 UTC 2023 - 2.7K bytes - Viewed (0)