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

Method without_attr

python/tvm/ir/module.py:255–267  ·  view source on GitHub ↗

Copy the IRModule and remove an attribute key and its associated value. Parameters ---------- attr_key : str The attribute key. Returns ------- mod : IRModule A new copy of the IRModule without the attribute

(self, attr_key: str)

Source from the content-addressed store, hash-verified

253 return _ffi_api.Module_WithAttr(self, attr_key, attr_value)
254
255 def without_attr(self, attr_key: str) -> "IRModule":
256 """Copy the IRModule and remove an attribute key and its associated value.
257 Parameters
258 ----------
259 attr_key : str
260 The attribute key.
261 Returns
262 -------
263 mod : IRModule
264 A new copy of the IRModule without the attribute
265 """
266
267 return _ffi_api.Module_WithoutAttr(self, attr_key)
268
269 def with_attrs(self, attr_map: DictAttrs | dict[str, Object]) -> "IRModule":
270 """Copy the IRModule and add the given attribute map to it.

Callers 15

visit_call_Method · 0.45
gen_call_tir_inputsFunction · 0.45
detach_paramsFunction · 0.45
__init__Method · 0.45
transformMethod · 0.45
visit_function_Method · 0.45
remove_global_symbolsFunction · 0.45
test_simpleFunction · 0.45
test_statesFunction · 0.45
_get_mod_from_cfuncFunction · 0.45
test_preluFunction · 0.45
_load_model_from_bufferFunction · 0.45

Calls

no outgoing calls