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

Method attr_missing

python/tvm_ffi/access_path.py:169–183  ·  view source on GitHub ↗

Create an access path that indicate an attribute is missing. Parameters ---------- attr_key The key of the attribute to access Returns ------- AccessPath The extended access path

(self, attr_key: str)

Source from the content-addressed store, hash-verified

167 return self._attr(attr_key)
168
169 def attr_missing(self, attr_key: str) -> AccessPath:
170 """Create an access path that indicate an attribute is missing.
171
172 Parameters
173 ----------
174 attr_key
175 The key of the attribute to access
176
177 Returns
178 -------
179 AccessPath
180 The extended access path
181
182 """
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.

Callers

nothing calls this directly

Calls 1

_attr_missingMethod · 0.95

Tested by

no test coverage detected