class_docstr: ### Parity dataset
docstr: Size of the dataset
docstr_tok: ["Size","of","the","dataset"]
code: def __len__(self):
      """
      Size of the dataset
      """
      return self.n_samples
  
file_path: annotated_deep_learning_paper_implementations/labml_nn/adaptive_computation/parity.py
imports: from typing import Tuple
  import torch
  from torch.utils.data import Dataset
label_desc: Use image node_id 2 for calling the ParityDataset obj's underlying member method code with example usage: obj.__len__() and returns: self