MCPcopy Create free account
hub / github.com/apache/tvm-ffi / array_item

Method array_item

python/tvm_ffi/access_path.py:185–199  ·  view source on GitHub ↗

Create an access path to the item of the current array. Parameters ---------- index The index of the item to access Returns ------- AccessPath The extended access path

(self, index: int)

Source from the content-addressed store, hash-verified

183 return self._attr_missing(attr_key)
184
185 def array_item(self, index: int) -> AccessPath:
186 """Create an access path to the item of the current array.
187
188 Parameters
189 ----------
190 index
191 The index of the item to access
192
193 Returns
194 -------
195 AccessPath
196 The extended access path
197
198 """
199 return self._array_item(index)
200
201 def array_item_missing(self, index: int) -> AccessPath:
202 """Create an access path that indicate an array item is missing.

Callers 3

test_path_array_itemFunction · 0.80
test_path_is_prefix_ofFunction · 0.80
test_path_equalFunction · 0.80

Calls 1

_array_itemMethod · 0.95

Tested by 3

test_path_array_itemFunction · 0.64
test_path_is_prefix_ofFunction · 0.64
test_path_equalFunction · 0.64