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

Class Add

python/tvm/tirx/expr.py:710–726  ·  view source on GitHub ↗

Add node. Parameters ---------- a : PrimExpr The left hand operand. b : PrimExpr The right hand operand. span : Optional[Span] The location of this expression in the source code.

Source from the content-addressed store, hash-verified

708
709@tvm_ffi.register_object("tirx.Add")
710class Add(BinaryOpExpr):
711 """Add node.
712
713 Parameters
714 ----------
715 a : PrimExpr
716 The left hand operand.
717
718 b : PrimExpr
719 The right hand operand.
720
721 span : Optional[Span]
722 The location of this expression in the source code.
723 """
724
725 def __init__(self, a: PrimExpr, b: PrimExpr, span: Span | None = None) -> None:
726 self.__init_handle_by_constructor__(_ffi_api.Add, a, b, span) # type: ignore
727
728
729@tvm_ffi.register_object("tirx.Sub")

Callers 10

visit_add_Method · 0.90
test_basic_visitorFunction · 0.90
test_simple_expr_counterFunction · 0.90
test_variable_replacerFunction · 0.90
test_add_to_sub_mutatorFunction · 0.90
test_complex_mutatorFunction · 0.90
test_stmt_mutatorFunction · 0.90
test_nested_expressionsFunction · 0.90
test_simple_mutationsFunction · 0.90

Calls

no outgoing calls

Tested by 10

visit_add_Method · 0.72
test_basic_visitorFunction · 0.72
test_simple_expr_counterFunction · 0.72
test_variable_replacerFunction · 0.72
test_add_to_sub_mutatorFunction · 0.72
test_complex_mutatorFunction · 0.72
test_stmt_mutatorFunction · 0.72
test_nested_expressionsFunction · 0.72
test_simple_mutationsFunction · 0.72