The spatial block axis defining function. Parameters ---------- dom : Union[Range, List[PrimExpr], Tuple[PrimExpr]] The domain of the iteration variable. binding : PrimExpr The binding value of the iteration variable. dtype : str
(
dom: ir.Range | list[PrimExpr] | tuple[PrimExpr],
binding: PrimExpr,
dtype: str = "int32",
)
| 1022 | |
| 1023 | @staticmethod |
| 1024 | def spatial( |
| 1025 | dom: ir.Range | list[PrimExpr] | tuple[PrimExpr], |
| 1026 | binding: PrimExpr, |
| 1027 | dtype: str = "int32", |
| 1028 | ) -> Var: |
| 1029 | """The spatial block axis defining function. |
| 1030 | |
| 1031 | Parameters |
| 1032 | ---------- |
| 1033 | dom : Union[Range, List[PrimExpr], Tuple[PrimExpr]] |
| 1034 | The domain of the iteration variable. |
| 1035 | |
| 1036 | binding : PrimExpr |
| 1037 | The binding value of the iteration variable. |
| 1038 | |
| 1039 | dtype : str |
| 1040 | The data type of the iteration variable. |
| 1041 | |
| 1042 | Returns |
| 1043 | ------- |
| 1044 | res : Var |
| 1045 | The iteration variable. |
| 1046 | """ |
| 1047 | return _ffi_api.AxisSpatial( # type: ignore[attr-defined] # pylint: disable=no-member |
| 1048 | _as_range(dom), binding, dtype |
| 1049 | ) |
| 1050 | |
| 1051 | @staticmethod |
| 1052 | def reduce( |