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.
| 353 | |
| 354 | @tvm_ffi.register_object("tirx.Var") |
| 355 | class 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") |
no outgoing calls