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

Class Var

python/tvm/tirx/expr.py:355–374  ·  view source on GitHub ↗

Symbolic variable. Parameters ---------- name : str The name dtype : Union[str, ir.Type] The data type span : Optional[Span] The location of this expression in the source code.

Source from the content-addressed store, hash-verified

353
354@tvm_ffi.register_object("tirx.Var")
355class Var(PrimExprWithOp):
356 """Symbolic variable.
357
358 Parameters
359 ----------
360 name : str
361 The name
362
363 dtype : Union[str, ir.Type]
364 The data type
365
366 span : Optional[Span]
367 The location of this expression in the source code.
368 """
369
370 name_hint: str
371 type_annotation: ir.Type
372
373 def __init__(self, name: str, dtype: str | ir.Type, span: Span | None = None) -> None:
374 self.__init_handle_by_constructor__(_ffi_api.Var, name, dtype, span) # type: ignore
375
376
377@tvm_ffi.register_object("tirx.SizeVar")

Callers 15

__init__Method · 0.90
test_remove_unused_undefFunction · 0.90
_make_varsFunction · 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_simple_stmt_counterFunction · 0.90
test_complex_mutatorFunction · 0.90

Calls

no outgoing calls

Tested by 15

test_remove_unused_undefFunction · 0.72
_make_varsFunction · 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_simple_stmt_counterFunction · 0.72
test_complex_mutatorFunction · 0.72
test_empty_expressionsFunction · 0.72