tvm_tirx.script.printer.doc.ExprDoc

tvm_tirx.script.printer.doc.ExprDoc#

class tvm_tirx.script.printer.doc.ExprDoc(source_paths)#

Bases: Doc

Base class of all expression Docs

attr(name)#

Create a doc that represents attribute access on self.

Parameters:

name (str) – The attribute name to access

Returns:

doc (AttrAccessDoc)

Return type:

AttrAccessDoc

call(*args, **kwargs)#

Create a doc that represents function call, with self as callee.

Parameters:
  • *args (tuple[ExprDoc]) – The positional arguments of the function call.

  • **kwargs (dict[str, ExprDoc]) – The keyword arguments of the function call.

Returns:

doc (CallDoc)

Return type:

CallDoc