tvm_tirx.runtime.MemoryScope#
- class tvm_tirx.runtime.MemoryScope(*args, **kwargs)#
Bases:
EnumA registered memory-space identity.
MemoryScope(name)looks up an existing scope and raisesValueErrorfor an unknown name. Registration alone does not enable backend support.Examples
custom = MemoryScope.register("my_accelerator.scratch") assert MemoryScope("my_accelerator.scratch") == custom
- Parameters:
args (Any)
kwargs (Any)
- Return type:
Any
- property name: str#
Return the canonical registered spelling.
- classmethod register(name)#
Register a new canonical name, raising ValueError for a duplicate.
- Parameters:
name (str)
- Return type: