Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for StaticDeviceMgr (0.18 sec)

  1. tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc

            options, "/job:localhost/replica:0/task:0", &devices));
        device_mgr_ = absl::make_unique<StaticDeviceMgr>(std::move(devices));
        ctx_ = testing::CreateTestingEagerContext(device_mgr_.get());
      }
    
      EagerContext* context() { return ctx_.get(); }
    
     private:
      std::unique_ptr<StaticDeviceMgr> device_mgr_;
      EagerContextPtr ctx_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/test_util.cc

      }
    
      std::vector<std::unique_ptr<Device>> devices;
      TF_CHECK_OK(DeviceFactory::AddDevices(
          options, "/job:localhost/replica:0/task:0", &devices));
      device_mgr_ = std::make_unique<StaticDeviceMgr>(std::move(devices));
    
      OptimizerOptions opts;
      lib_def_ = std::make_unique<FunctionLibraryDefinition>(OpRegistry::Global(),
                                                             FunctionDefLibrary());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h

      std::string device_type_;
    
      mlir::PatternRewriter& rewriter_;
      tensorflow::OpOrArgLocNameMapper name_mapper_;
    
      tensorflow::XlaContext* context_;  // Ref-counted.
    
      std::unique_ptr<tensorflow::StaticDeviceMgr> device_mgr_;
      tensorflow::Device* device_;  // Owned by device_mgr_;
      std::unique_ptr<tensorflow::ScopedStepContainer> step_container_;
      std::unique_ptr<tensorflow::FunctionLibraryDefinition> flib_def_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/fake_session.cc

      initialized_ = true;
    }
    
    void FakeSession::BuildDeviceManager() {
      auto device =
          tensorflow::DeviceFactory::NewDevice("CPU", {}, kDeviceNamePrefix);
      device_mgr_ =
          std::make_unique<tensorflow::StaticDeviceMgr>(std::move(device));
    }
    
    void FakeSession::InitVariables() {
      tensorflow::Device* device = nullptr;
      auto status = device_mgr_->LookupDevice(kDeviceName, &device);
      if (status != absl::OkStatus()) return;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

    namespace mlir {
    namespace mhlo {
    namespace {
    
    using ::mlir::ModuleOp;
    using ::tensorflow::Tensor;
    using ::tsl::StatusOr;
    using ::xla::XlaComputation;
    
    static std::unique_ptr<tensorflow::StaticDeviceMgr> CreateDeviceMgr(
        const std::string& device_type) {
      // Register compilation kernels for all registered XLA backends.
      tensorflow::XlaOpRegistry::RegisterCompilationKernels();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/encapsulate_subgraphs_pass.cc

      if (devices.empty()) {
        return errors::NotFound(
            "Failed to create a CPU device for EncapsulateSubgraphsPass");
      }
    
      std::unique_ptr<DeviceMgr> device_mgr =
          std::make_unique<StaticDeviceMgr>(std::move(devices));
      const auto* config = &options.session_options->config;
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr(
          new ProcessFunctionLibraryRuntime(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 51K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      std::vector<std::unique_ptr<Device>> devices;
      TF_CHECK_OK(DeviceFactory::AddDevices(
          session_options, "/job:localhost/replica:0/task:0", &devices));
      OptimizerOptions opts;
      auto device_mgr = std::make_unique<StaticDeviceMgr>(std::move(devices));
      auto pflr = std::make_unique<ProcessFunctionLibraryRuntime>(
          device_mgr.get(), Env::Default(), /*config=*/nullptr,
          TF_GRAPH_DEF_VERSION, lib_def.get(), opts,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
Back to top