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

Method map_item

python/tvm_ffi/access_path.py:217–231  ·  view source on GitHub ↗

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

(self, key: Any)

Source from the content-addressed store, hash-verified

215 return self._array_item_missing(index)
216
217 def map_item(self, key: Any) -> AccessPath:
218 """Create an access path to the item of the current map.
219
220 Parameters
221 ----------
222 key
223 The key of the item to access
224
225 Returns
226 -------
227 AccessPath
228 The extended access path
229
230 """
231 return self._map_item(key)
232
233 def map_item_missing(self, key: Any) -> AccessPath:
234 """Create an access path that indicate a map item is missing.

Callers 1

test_path_map_itemFunction · 0.80

Calls 1

_map_itemMethod · 0.95

Tested by 1

test_path_map_itemFunction · 0.64