class_docstr: Basic L{Linker} subclass that calls the perform method on each L{Op} in
  the L{FunctionGraph} in the order given by L{Linker.schedule}.
class_docstr_tok: ["Basic","L","{","Linker","}","subclass","that","calls","the","perform","method","on","each","L","{","Op","}","in","the","L","{","FunctionGraph","}","in","the","order","given","by","L","{","Linker.schedule","}","."]
docstr: Associate a `FunctionGraph` with this `Linker`.
  
  Parameters
  ----------
  fgraph
      A `PerformLinker` instance can have accepted one `FunctionGraph`
      instance at a time.
  no_recycling
      WRITEME
docstr_tok: ["Associate","a","`","FunctionGraph","`","with","this","`","Linker","`",".","Parameters","--","--","--","--","--","fgraph","A","`","PerformLinker","`","instance","can","have","accepted","one","`","FunctionGraph","`","instance","at","a","time",".","no_recycling","WRITEME"]
code: def accept(
      self,
      fgraph: FunctionGraph,
      no_recycling: Optional[Sequence[Variable]] = None,
      profile: Optional[Union[bool, "ProfileStats"]] = None,
  ) -> "PerformLinker":
      """Associate a `FunctionGraph` with this `Linker`.
  
      Parameters
      ----------
      fgraph
          A `PerformLinker` instance can have accepted one `FunctionGraph`
          instance at a time.
      no_recycling
          WRITEME
  
      """
      if no_recycling is None:
          no_recycling = []
      if self.fgraph is not None and self.fgraph is not fgraph:
          return type(self)(allow_gc=self.allow_gc).accept(
              fgraph, no_recycling, profile
          )
          # raise Exception("Cannot accept from a Linker that is already tied to another FunctionGraph.")
      self.fgraph = fgraph
      self.no_recycling = no_recycling
      return self
  
imports: from abc import ABC, abstractmethod
  from collections.abc import Sequence
  from copy import copy, deepcopy
  from typing import TYPE_CHECKING, Any, Callable, Optional, Union
  from pytensor.configdefaults import config
  from pytensor.graph.basic import Apply, Variable
  from pytensor.graph.fg import FunctionGraph
  from pytensor.graph.type import Type
  from pytensor.link.utils import gc_helper, map_storage, raise_with_op, streamline
  from pytensor.utils import difference
label_desc: Use image node_id 2 for calling the PerformLinker obj's underlying member method code with example usage: obj.accept(fgraph, no_recycling, profile) and returns: self, type