MCPcopy Index your code
hub / github.com/apache/tvm / attr

Method attr

python/tvm/script/printer/doc.py:41–54  ·  view source on GitHub ↗

Create a doc that represents attribute access on self. Parameters ---------- name : str The attribute name to access Returns ------- doc : AttrAccessDoc

(self, name: str)

Source from the content-addressed store, hash-verified

39 """Base class of all expression Docs"""
40
41 def attr(self, name: str) -> "AttrAccessDoc":
42 """
43 Create a doc that represents attribute access on self.
44
45 Parameters
46 ----------
47 name : str
48 The attribute name to access
49
50 Returns
51 -------
52 doc : AttrAccessDoc
53 """
54 return _ffi_api.ExprDocAttr(self, name) # type: ignore # pylint: disable=no-member
55
56 def call(self, *args: tuple["ExprDoc"], **kwargs: dict[str, "ExprDoc"]) -> "CallDoc":
57 """

Callers 15

batch_decode_paged_kvFunction · 0.80
const_bias_initFunction · 0.80
identity_initFunction · 0.80
matmul_inst_macroFunction · 0.80
impl_C_sbufFunction · 0.80
identity_initFunction · 0.80
transpose_psum_outputFunction · 0.80
transpose_sbuf_outputFunction · 0.80
implFunction · 0.80
implFunction · 0.80
implFunction · 0.80
implFunction · 0.80

Calls

no outgoing calls

Tested by 15

take_backwardMethod · 0.64
scatter_elementsMethod · 0.64
scatter_ndMethod · 0.64
kernel_1Method · 0.64
kernel_2Method · 0.64
test_print_attr_docFunction · 0.64
test_evaluateFunction · 0.64
test_allocateFunction · 0.64
test_forFunction · 0.64
lowered_loop_splitFunction · 0.64