class_docstr: Abstract base class for Samplers.
  
  Subclasses must implement the `forward` method.
  
  Example:
      This method is usually not called directly, but via the sampler's
      `__call__` method:
      >>> posterior = model.posterior(test_X)
      >>> samples = sampler(posterior)
  
  :meta private:
class_docstr_tok: ["Abstract","base","class","for","Samplers",".","Subclasses","must","implement","the","`","forward","`","method",".","Example",":","This","method","is","usually","not","called","directly",",","but","via","the","sampler's","`","__call__","`","method",":",">",">",">","posterior","=","model.posterior","(","test_X",")",">",">",">","samples","=","sampler","(","posterior",")",":","meta","private",":"]
docstr: Update the sampler to use the original base samples for X_baseline.
  
  This is used in CachedCholeskyAcquisitionFunctions to ensure consistency.
  
  Args:
      posterior: The posterior for which the base samples are constructed.
      base_sampler: The base sampler to retrieve the base samples from.
docstr_tok: ["Update","the","sampler","to","use","the","original","base","samples","for","X_baseline",".","This","is","used","in","CachedCholeskyAcquisitionFunctions","to","ensure","consistency",".","Args",":","posterior",":","The","posterior","for","which","the","base","samples","are","constructed",".","base_sampler",":","The","base","sampler","to","retrieve","the","base","samples","from","."]
code: def _update_base_samples(
      self, posterior: Posterior, base_sampler: MCSampler
  ) -> None:
      r"""Update the sampler to use the original base samples for X_baseline.
  
      This is used in CachedCholeskyAcquisitionFunctions to ensure consistency.
  
      Args:
          posterior: The posterior for which the base samples are constructed.
          base_sampler: The base sampler to retrieve the base samples from.
      """
      raise NotImplementedError(
          f"{self.__class__.__name__} does not implement `_update_base_samples`."
      )
  
file_path: botorch/botorch/sampling/base.py
imports: from __future__ import annotations
  import warnings
  from abc import ABC, abstractmethod
  from typing import Any, Optional, Tuple
  import torch
  from botorch.exceptions.errors import InputDataError
  from botorch.posteriors import Posterior
  from torch import Tensor
  from torch.nn import Module
label_desc: Use image node_id 6 for calling the MCSampler obj's underlying member method code with example usage: obj._update_base_samples(posterior, base_sampler) without return types