class_docstr: An abstraction representing a microbatch in the pipeline.
class_docstr_tok: ["An","abstraction","representing","a","microbatch","in","the","pipeline","."]
docstr: Retrieves the underlying tensor.
docstr_tok: ["Retrieves","the","underlying","tensor","."]
code: def tensor(self) -> Tensor:
      """Retrieves the underlying tensor."""
      if not self.atomic:
          raise AttributeError("not atomic batch")
      return cast(Tensor, self._values)
  
imports: import typing
  from typing import Any, Callable, List, Union, cast, Sequence
  import torch
  from torch import Tensor
  import torch.cuda.comm
label_desc: Use image node_id 2 for calling the Batch obj's underlying member method code with example usage: obj.tensor() and returns: cast