class_docstr: This custom DataLoader serves mini-batches that are either fully-observed (i.e. labeled)
  or partially-observed (i.e. unlabeled) but never mixed.
class_docstr_tok: ["This","custom","DataLoader","serves","mini-batches","that","are","either","fully-observed","(","i.e",".","labeled",")","or","partially-observed","(","i.e",".","unlabeled",")","but","never","mixed","."]
code: def size(self):
      return self.data_x.size(0)
  
file_path: pyro/pyro/contrib/examples/scanvi_data.py
imports: import math
  import numpy
  import torch
  import torch.nn
  from scipy import sparse
label_desc: Use image node_id 2 for calling the BatchDataLoader obj's underlying member method code with example usage: obj.size() and returns: self