- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for default_device_ (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tf_device_assignment.cc
public: SimpleTFDeviceAssignmentPass() = default; SimpleTFDeviceAssignmentPass(const SimpleTFDeviceAssignmentPass&) {} explicit SimpleTFDeviceAssignmentPass(llvm::StringRef default_device) { default_device_ = std::string(default_device); } void runOnOperation() override { Builder builder(&getContext()); Dialect* tf = getContext().getLoadedDialect<TensorFlowDialect>();
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/tfrt/function/function.cc
mlir::PassManager pm(module.getContext()); tensorflow::applyTensorflowAndCLOptions(pm); tensorflow::TfrtPipelineOptions pass_options; if (!options.default_device.empty()) { pass_options.default_device = options.default_device; } if (!options.force_data_format.empty()) { pass_options.force_data_format = options.force_data_format; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 08:13:15 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td
let summary = "Simple device assignment in TF dialect."; let constructor = "TF::CreateSimpleTFDeviceAssignmentPass()"; let options = [ Option<"default_device_", "default-device", "std::string", /*default=*/"\"cpu\"", "The default device to assign."> ]; let description = [{ Assigns the default device to all ops that have an empty (or
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 99.6K bytes - Viewed (0) -
tensorflow/cc/framework/testutil.cc
#include "tensorflow/cc/framework/testutil.h" #include <utility> #include "tensorflow/cc/client/client_session.h" #include "tensorflow/core/framework/tensor_testutil.h" #include "tensorflow/core/graph/default_device.h" namespace tensorflow { namespace test { void GetTensors(const Scope& scope, OutputList tensors, std::vector<Tensor>* out) { ClientSession session(scope);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 07 06:52:56 UTC 2017 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_executor.cc
os); // Convert TF to TFRT fallback dialect. TfrtPipelineOptions pipeline_opts; pipeline_opts.default_device = kDefaultHostDeviceName; pipeline_opts.hoist_invariant_ops = true; pipeline_opts.sink_in_invariant_ops = false; pipeline_opts.cost_threshold = 1024; pipeline_opts.merge_inter_dependent_streams = true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 00:18:59 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/passes.h
// Creates a simple device assignment pass on TF dialect for CoreRT use case. std::unique_ptr<OperationPass<func::FuncOp>> CreateSimpleTFDeviceAssignmentPass( llvm::StringRef default_device = "cpu"); // Creates a pass to perform device assignment for TF dialect ops that do not // have device assignment, by using the device attribute of the function. std::unique_ptr<OperationPass<func::FuncOp>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 31.8K bytes - Viewed (0) -
tensorflow/c/c_api.cc
opts->opts.prefix = prefix; } void TF_ImportGraphDefOptionsSetDefaultDevice(TF_ImportGraphDefOptions* opts, const char* device) { opts->opts.default_device = device; } void TF_ImportGraphDefOptionsSetUniquifyNames(TF_ImportGraphDefOptions* opts, unsigned char uniquify_names) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 102.3K bytes - Viewed (0)