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)
| 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. |
no outgoing calls