MCPcopy Create free account
hub / github.com/apache/tvm / OperationDoc

Class OperationDoc

python/tvm/script/printer/doc.py:269–281  ·  view source on GitHub ↗

Doc that represents operation It can be unary, binary and other special operators (for example, the if-then-else expression).

Source from the content-addressed store, hash-verified

267
268@register_object("script.printer.OperationDoc")
269class OperationDoc(ExprDoc):
270 """
271 Doc that represents operation
272
273 It can be unary, binary and other special operators (for example, the
274 if-then-else expression).
275 """
276
277 kind: OperationKind
278 operands: Sequence[ExprDoc]
279
280 def __init__(self, kind: OperationKind, operands: list[ExprDoc]):
281 self.__init_handle_by_constructor__(_ffi_api.OperationDoc, kind, operands) # type: ignore # pylint: disable=no-member
282
283
284@register_object("script.printer.LambdaDoc")

Callers 15

get_func_doc_for_classFunction · 0.90
negativeFunction · 0.90
invertFunction · 0.90
not_Function · 0.90
addFunction · 0.90
subFunction · 0.90
multFunction · 0.90
divFunction · 0.90
modFunction · 0.90

Calls

no outgoing calls

Tested by 15

get_func_doc_for_classFunction · 0.72
negativeFunction · 0.72
invertFunction · 0.72
not_Function · 0.72
addFunction · 0.72
subFunction · 0.72
multFunction · 0.72
divFunction · 0.72
modFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…