class_docstr: An abstraction representing a microbatch in the pipeline.
class_docstr_tok: ["An","abstraction","representing","a","microbatch","in","the","pipeline","."]
docstr: Retrieves the index of first tensor found.
docstr_tok: ["Retrieves","the","index","of","first","tensor","found","."]
code: def find_tensor_idx(self):
      """
      Retrieves the index of first tensor found.
      """
      if self.atomic:
          return 0
      for i, value in enumerate(self._values):
          if torch.is_tensor(value):
              return i
  
      raise TypeError("No tensor found!")
  
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 4 for calling the Batch obj's underlying member method code with example usage: obj.find_tensor_idx() and returns: int, i