class_docstr: Cache for model outputs.
docstr: Load cache data from disk.
code: def load_from_disk(self):
      """Load cache data from disk."""
      # No cache loader is created if no cache directory was provided, in which
      # case this is a no-op.
      cache_loader = self._cache_loader
      if not cache_loader:
          return
      self._d = cache_loader.load()
      self._num_persisted = len(self._d)
      logging.info(
          "Loaded cache (%d entries) from %s",
          self._num_persisted,
          self._cache_dir,
      )
  
imports: from collections.abc import Callable, Iterable
  import os
  import pickle
  import threading
  from typing import Any, Optional, Union
  from absl import logging
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
  from lit_nlp.lib import serialize
label_desc: Use image node_id 11 for calling the PredsCache obj's underlying member method code with example usage: obj.load_from_disk() without return types