parameters: (self, pool=None)
docstring: r"""
          Begins capturing CUDA work on the current stream.
  
          Typically, you shouldn't call ``capture_begin`` yourself.
          Use :class:`~torch.cuda.graph` or :func:`~torch.cuda.make_graphed_callables`,
          which call ``capture_begin`` internally.
  
          Arguments:
              pool (optional): Token (returned by :func:`~torch.cuda.graph_pool_handle` or
                  :meth:`other_Graph_instance.pool()<torch.cuda.CUDAGraph.pool>`) that hints this graph may share memory
                  with the indicated pool.  See :ref:`Graph memory management<graph-memory-management>`.
docstring_summary: r"""
          Begins capturing CUDA work on the current stream.
docstring_tokens: r Begins capturing CUDA work on the current stream .
function: def capture_begin(self, pool=None):
          r"""
          Begins capturing CUDA work on the current stream.
  
          Typically, you shouldn't call ``capture_begin`` yourself.
          Use :class:`~torch.cuda.graph` or :func:`~torch.cuda.make_graphed_callables`,
          which call ``capture_begin`` internally.
  
          Arguments:
              pool (optional): Token (returned by :func:`~torch.cuda.graph_pool_handle` or
                  :meth:`other_Graph_instance.pool()<torch.cuda.CUDAGraph.pool>`) that hints this graph may share memory
                  with the indicated pool.  See :ref:`Graph memory management<graph-memory-management>`.
          """
          # I'm not sure if pybind11 converts a None arg to the default defined on the C++ side,
          # so I'm not taking any chances.
          if pool is None:
              super(CUDAGraph, self).capture_begin()
          else:
              super(CUDAGraph, self).capture_begin(pool)
function_tokens: def capture_begin ( self , pool = None ) : # I'm not sure if pybind11 converts a None arg to the default defined on the C++ side, # so I'm not taking any chances. if pool is None : super ( CUDAGraph , self ) . capture_begin ( ) else : super ( CUDAGraph , self ) . capture_begin ( pool )