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

Method forward_index

python/tvm/s_tir/data_layout.py:106–119  ·  view source on GitHub ↗

Given the indices of the src-layout, infer the dst index. Parameters ---------- index: Array of Expr The indices in src-layout. Returns ------- dst_index: Array of Expr The inferred indices in dst-layout.

(self, index)

Source from the content-addressed store, hash-verified

104 """
105
106 def forward_index(self, index):
107 """Given the indices of the src-layout, infer the dst index.
108
109 Parameters
110 ----------
111 index: Array of Expr
112 The indices in src-layout.
113
114 Returns
115 -------
116 dst_index: Array of Expr
117 The inferred indices in dst-layout.
118 """
119 return _ffi_api.SBijectiveLayoutForwardIndex(self, index) # type: ignore
120
121 def backward_index(self, index):
122 """Given the indices of the dst-layout, infer the src index.

Callers 2

get_shapeFunction · 0.80
test_bilayout_indexFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_bilayout_indexFunction · 0.64