Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LocalDeviceManager (0.14 sec)

  1. 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)
  2. 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)
Back to top