Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for LocalDeviceManager (0.61 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/fake_session.h

      ::tensorflow::Status Close() override;
    
      ::tensorflow::Status ListDevices(
          std::vector<tensorflow::DeviceAttributes>* response) override;
    
      ::tensorflow::Status LocalDeviceManager(
          const tensorflow::DeviceMgr** deviceMgrPtr) override;
    
      ::tensorflow::Status Run(
          const std::vector<std::pair<std::string, ::tensorflow::Tensor>>& inputs,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc

      if (!session || !llvm::hasSingleElement(function)) return success();
      Block& block = function.front();
    
      const tensorflow::DeviceMgr* mgr = nullptr;
      auto status = session->LocalDeviceManager(&mgr);
      if (!status.ok())
        return function->emitError(
            absl::StrCat("failed to fetch device manager: ", status.message()));
    
      // Fetch all varHandleOp in the function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 19:14:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h

      }
    
      Status ListDevices(
          std::vector<tensorflow::DeviceAttributes>* response) override {
        return tensorflow::errors::Unimplemented("not available");
      }
    
      Status LocalDeviceManager(
          const tensorflow::DeviceMgr** deviceMgrPtr) override {
        // This method returns a null device manager without making an error.
        // Users of this method will be notified since it will have a fake data.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 21 15:49:06 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

    }
    
    }  // namespace
    
    LogicalResult InitializeVariablesInSessionInitializer(
        ModuleOp module, tensorflow::Session* session) {
      const tensorflow::DeviceMgr* mgr = nullptr;
      auto status = session->LocalDeviceManager(&mgr);
      if (!status.ok()) {
        module->emitError(
            absl::StrCat("failed to fetch device manager: ", status.message()));
        return failure();
      }
    
      // Fetch all VarHandleOp.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/fake_session.cc

    }
    
    Status FakeSession::ListDevices(
        std::vector<tensorflow::DeviceAttributes>* response) {
      return tensorflow::errors::Unimplemented("not available");
    }
    
    Status FakeSession::LocalDeviceManager(
        const tensorflow::DeviceMgr** deviceMgrPtr) {
      Initialize();
      if (kSessionOptions->fail_to_fetch_local_device_manager)
        return Status(absl::StatusCode::kUnknown, "No Local Device Manager");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

      if (!status.ok()) {
        return module.emitOpError()
               << "failed to run the provided session: " << status.message();
      }
    
      const DeviceMgr* device_manager;
      if (!(session->LocalDeviceManager(&device_manager).ok())) {
        return module.emitOpError() << "failed to get local device manager";
      }
    
      // Read all underlying tensors of the variables from the session.
      std::vector<Tensor> tensors;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

    LogicalResult FreezeVariables(ModuleOp module, tensorflow::Session* session) {
      if (failed(ValidateModule(module))) return failure();
    
      const tensorflow::DeviceMgr* mgr = nullptr;
      auto status = session->LocalDeviceManager(&mgr);
      if (!status.ok()) {
        module->emitError(
            absl::StrCat("failed to fetch device manager: ", status.message()));
        return failure();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top