MCPcopy
hub / github.com/apache/tvm / spatial

Method spatial

python/tvm/tirx/script/builder/ir.py:1024–1049  ·  view source on GitHub ↗

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",
    )

Source from the content-addressed store, hash-verified

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(

Callers 15

copy_single_pageFunction · 0.80
copy_single_page_mlaFunction · 0.80
copy_single_page_cpuFunction · 0.80
tir_matmulMethod · 0.80
tir_reluMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
mainMethod · 0.80
add1Method · 0.80
mul1Method · 0.80
fused_add_mulMethod · 0.80
argminMethod · 0.80

Calls 1

_as_rangeFunction · 0.85

Tested by 15

tir_matmulMethod · 0.64
tir_reluMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64
mainMethod · 0.64
add1Method · 0.64
mul1Method · 0.64
fused_add_mulMethod · 0.64
argminMethod · 0.64
stdMethod · 0.64
maxMethod · 0.64
shape_funcMethod · 0.64