text: #pragma once
  
  #include <cstddef>
  #include <torch/csrc/WindowsTorchApiMacro.h>
  
  namespace torch {
  namespace data {
  namespace samplers {
  /// A base class for custom index types.
  struct TORCH_API CustomBatchRequest {
    virtual ~CustomBatchRequest() = default;
  
    /// The number of elements accessed by this index.
    virtual size_t size() const = 0;
  };
  } // namespace samplers
  } // namespace data
  } // namespace torch
  