class_docstr: IRModule that holds functions and type definitions.
  
  IRModule is the basic unit for all IR transformations across the stack.
  
  Parameters
  ----------
  functions: Optional[dict].
      Map of global var to BaseFunc
class_docstr_tok: ["IRModule","that","holds","functions","and","type","definitions",".","IRModule","is","the","basic","unit","for","all","IR","transformations","across","the","stack",".","Parameters","--","--","--","--","--","functions",":","Optional","[","dict","]",".","Map","of","global","var","to","BaseFunc"]
docstr: Copy the IRModule and add an attribute to it.
  
  Parameters
  ----------
  attr_key : str
      The attribute key.
  
  attr_value : Object
      The new attribute value.
  
  Returns
  -------
  mod : IRModule
      A new copy of the IRModule with the attribute
docstr_tok: ["Copy","the","IRModule","and","add","an","attribute","to","it",".","Parameters","--","--","--","--","--","attr_key",":","str","The","attribute","key",".","attr_value",":","Object","The","new","attribute","value",".","Returns","--","--","--","-","mod",":","IRModule","A","new","copy","of","the","IRModule","with","the","attribute"]
code: def with_attr(self, attr_key, attr_value):
      """Copy the IRModule and add an attribute to it.
  
      Parameters
      ----------
      attr_key : str
          The attribute key.
  
      attr_value : Object
          The new attribute value.
  
      Returns
      -------
      mod : IRModule
          A new copy of the IRModule with the attribute
      """
  
      return _ffi_api.Module_WithAttr(self, attr_key, attr_value)
  
imports: import tvm._ffi
  from tvm._ffi.base import string_types
  from tvm.runtime import Scriptable
  from .None import _ffi_api
  from .None import expr
  from .None import type
  from .base import Node
label_desc: Use image node_id 17 for calling the IRModule obj's underlying member method code with example usage: obj.with_attr(attr_key, attr_value) and returns: _ffi_api