class_docstr: Iterates over the leading dim of a WeakTensor. Performs no error checks.
class_docstr_tok: ["Iterates","over","the","leading","dim","of","a","WeakTensor",".","Performs","no","error","checks","."]
code: def __init__(self, weak_tensor, dim0):
      self._weak_tensor = weak_tensor
      self._index = 0
      self._limit = dim0
  
imports: from typing import Optional
  import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import composite_tensor_gradient
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import extension_type
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_conversion_registry
  from tensorflow.python.types import core
label_desc: Use image node_id 1 to create a new _WeakTensorIterator object from inherited base classes: object with example: obj = _WeakTensorIterator(weak_tensor, dim0)